<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.24">
<TITLE>RE: [Chameleon] compress Chameleon javascript</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Hi Jacob,</FONT>
</P>
<P><FONT SIZE=2>cool, could you please backfix the missing semi-colon to the 2.4 branch?</FONT>
</P>
<P><FONT SIZE=2>Also, the ka-map script removes comments and whitespace, but also sends the javascript gzip compressed. You should check that one out (I have attached it), I am sure you can get it to go be around 50 Kb.</FONT></P>
<P><FONT SIZE=2>Best regards,</FONT>
<BR><FONT SIZE=2>Bart</FONT>
</P>
<P><FONT SIZE=2>-----Oorspronkelijk bericht-----</FONT>
<BR><FONT SIZE=2>Van: Delfos, Jacob [<A HREF="mailto:Jacob.Delfos@maunsell.com">mailto:Jacob.Delfos@maunsell.com</A>]</FONT>
<BR><FONT SIZE=2>Verzonden: donderdag 11 mei 2006 8:34</FONT>
<BR><FONT SIZE=2>Aan: Eijnden, B. van den (Bart); Bart van den Eijnden; chameleon@lists.maptools.org</FONT>
<BR><FONT SIZE=2>Onderwerp: RE: [Chameleon] compress Chameleon javascript</FONT>
</P>
<BR>
<P><FONT SIZE=2>Hi Bart,</FONT>
</P>
<P><FONT SIZE=2>I just found the missing semi-colon (line 10). It's all working well now. I have updated cwc_line.js in CVS.</FONT>
<BR><FONT SIZE=2>I just updated our websites here to make use of it, and I didn't run into any more problems. The reduction in loading all the .js files is from 321kb to 119kb. I think that's quite substantial. This is using the old getcjs.php file that you sent to the list.</FONT></P>
<P><FONT SIZE=2>The modification to UIManager.php I just sent works, but ideally the correct definition of the link to the js file should be inserted in the several widgets. Just in case anyone is interested in the quick+dirty solution, I have attached the UIManager.php and getcjs.php file that I use (place both in /htdocs/). Be aware you have to update cwc_line.js from CVS, or add a semi-colon on line 10.</FONT></P>
<P><FONT SIZE=2>regards,</FONT>
</P>
<P><FONT SIZE=2>Jacob</FONT>
</P>
<P><FONT FACE="Arial" SIZE=2 COLOR="#000000"></FONT>
</BODY>
</HTML>