<!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>I have used mod_deflate in the past with Apache 2, but not for a Chameleon project.</FONT>
</P>

<P><FONT SIZE=2>I think the outcome will be the same as the PHP way, only the PHP way can also be used with IIS. As far as I know, there is no non-commercial mod_deflate for IIS.</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: chameleon-bounces@lists.maptools.org</FONT>
<BR><FONT SIZE=2>[<A HREF="mailto:chameleon-bounces@lists.maptools.org">mailto:chameleon-bounces@lists.maptools.org</A>]Namens Delfos, Jacob</FONT>
<BR><FONT SIZE=2>Verzonden: vrijdag 12 mei 2006 1:19</FONT>
<BR><FONT SIZE=2>Aan: Paul Spencer</FONT>
<BR><FONT SIZE=2>CC: chameleon@lists.maptools.org</FONT>
<BR><FONT SIZE=2>Onderwerp: RE: [Chameleon] compress Chameleon javascript</FONT>
</P>
<BR>

<P><FONT SIZE=2>Or possibly even better, applying compression to all output from the</FONT>
<BR><FONT SIZE=2>Apache server, as in:</FONT>
</P>

<P><FONT SIZE=2><A HREF="http://httpd.apache.org/docs/2.0/mod/mod_deflate.html" TARGET="_blank">http://httpd.apache.org/docs/2.0/mod/mod_deflate.html</A></FONT>
</P>

<P><FONT SIZE=2>I tried the line:</FONT>
</P>

<P><FONT SIZE=2>&nbsp;AddOutputFilterByType DEFLATE text/html text/plain text/xml</FONT>
</P>

<P><FONT SIZE=2>But firefox did not indicate a change in document size (which may not</FONT>
<BR><FONT SIZE=2>mean it didn't work).</FONT>
<BR><FONT SIZE=2>Has anyone ever experimented with this?</FONT>
</P>

<P><FONT SIZE=2>Regards</FONT>
</P>

<P><FONT SIZE=2>Jacob</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=2>&gt; From: chameleon-bounces@lists.maptools.org </FONT>
<BR><FONT SIZE=2>&gt; [<A HREF="mailto:chameleon-bounces@lists.maptools.org">mailto:chameleon-bounces@lists.maptools.org</A>] On Behalf Of </FONT>
<BR><FONT SIZE=2>&gt; Delfos, Jacob</FONT>
<BR><FONT SIZE=2>&gt; Sent: 12 May 2006 07:09</FONT>
<BR><FONT SIZE=2>&gt; To: Paul Spencer</FONT>
<BR><FONT SIZE=2>&gt; Cc: chameleon@lists.maptools.org</FONT>
<BR><FONT SIZE=2>&gt; Subject: RE: [Chameleon] compress Chameleon javascript</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Paul,</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; I just tried applying gzip compression on the actual page (main</FONT>
<BR><FONT SIZE=2>&gt; document), by adding &quot;ob_start(&quot;ob_gzhandler&quot;);&quot; to the start of</FONT>
<BR><FONT SIZE=2>&gt; index.phtml, which launches the site. According to Firefox, </FONT>
<BR><FONT SIZE=2>&gt; the document</FONT>
<BR><FONT SIZE=2>&gt; size went down from 200kb to 31kb. That is huge, considering the main</FONT>
<BR><FONT SIZE=2>&gt; page is loaded everytime a layer is changed. Is there any </FONT>
<BR><FONT SIZE=2>&gt; objection that</FONT>
<BR><FONT SIZE=2>&gt; you know of against doing this?</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Internet explorer reported the same filesize, though. Is this </FONT>
<BR><FONT SIZE=2>&gt; because it</FONT>
<BR><FONT SIZE=2>&gt; reports the filesize after compression? Is there a way to test this?</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Would it be possible to run index.phtml through a script like</FONT>
<BR><FONT SIZE=2>&gt; getcjs.php?</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Regards,</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Jacob</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; -----Original Message-----</FONT>
<BR><FONT SIZE=2>&gt; &gt; From: Paul Spencer [<A HREF="mailto:pspencer@dmsolutions.ca">mailto:pspencer@dmsolutions.ca</A>] </FONT>
<BR><FONT SIZE=2>&gt; &gt; Sent: 11 May 2006 18:24</FONT>
<BR><FONT SIZE=2>&gt; &gt; To: Delfos, Jacob</FONT>
<BR><FONT SIZE=2>&gt; &gt; Cc: Eijnden, B. van den (Bart); Bart van den Eijnden; </FONT>
<BR><FONT SIZE=2>&gt; &gt; chameleon@lists.maptools.org</FONT>
<BR><FONT SIZE=2>&gt; &gt; Subject: Re: [Chameleon] compress Chameleon javascript</FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; For the record, I didn't change the algorithm :)&nbsp; I just added&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; &gt; multiple files and removed the assumption of .js and added the&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; &gt; ob_start with gzip compression.&nbsp; I found its about 8 times&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; &gt; compression of javascript (about 4 with just gzip and 2 with&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; &gt; whitespace/comment removal)</FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; It would be nice if we re-worked chameleon to spit all its </FONT>
<BR><FONT SIZE=2>&gt; &gt; javascript&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; &gt; out into a single, temporary javascript file that could be cached/ </FONT>
<BR><FONT SIZE=2>&gt; &gt; loaded like this.</FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; Cheers</FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; Paul</FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; On 11-May-06, at 3:31 AM, Delfos, Jacob wrote:</FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; Hi Bart,</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; I have modified the Ka-Map version to work with </FONT>
<BR><FONT SIZE=2>&gt; Chameleon, though&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; it would require a bit of alternations to Chameleon to </FONT>
<BR><FONT SIZE=2>&gt; make use of&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; the feature of compressing multiple JavaScript files to </FONT>
<BR><FONT SIZE=2>&gt; one stream.</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; I have attached the new file. UIManager.php had to be changed,&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; because the new getcjs.php expects &quot;.js&quot; extensions.</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; regards,</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; Jacob</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; From: Eijnden, B. van den (Bart)&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; [<A HREF="mailto:b.vdeijnden@agi.rws.minvenw.nl">mailto:b.vdeijnden@agi.rws.minvenw.nl</A>]</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; Sent: 11 May 2006 14:34</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; To: Delfos, Jacob; Bart van den Eijnden; </FONT>
<BR><FONT SIZE=2>&gt; &gt; chameleon@lists.maptools.org</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; Subject: RE: [Chameleon] compress Chameleon javascript</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; Hi Jacob,</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; cool, could you please backfix the missing semi-colon to the 2.4&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; branch?</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; Also, the ka-map script removes comments and whitespace, </FONT>
<BR><FONT SIZE=2>&gt; but also&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; sends the javascript gzip compressed. You should check that </FONT>
<BR><FONT SIZE=2>&gt; &gt; one out&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; (I have attached it), I am sure you can get it to go be </FONT>
<BR><FONT SIZE=2>&gt; &gt; around 50 Kb.</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; Best regards,</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; Bart</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; &lt;JS_compress2.zip&gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; _______________________________________________</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; Chameleon mailing list</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; Chameleon@lists.maptools.org</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; <A HREF="http://lists.maptools.org/mailman/listinfo/chameleon" TARGET="_blank">http://lists.maptools.org/mailman/listinfo/chameleon</A></FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; +-----------------------------------------------------------------+</FONT>
<BR><FONT SIZE=2>&gt; &gt; |Paul Spencer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pspencer@dmsolutions.ca&nbsp;&nbsp; |</FONT>
<BR><FONT SIZE=2>&gt; &gt; +-----------------------------------------------------------------+</FONT>
<BR><FONT SIZE=2>&gt; &gt; |Applications &amp; Software Development&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |</FONT>
<BR><FONT SIZE=2>&gt; &gt; |DM Solutions Group Inc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="http://www.dmsolutions.ca/|" TARGET="_blank">http://www.dmsolutions.ca/|</A></FONT>
<BR><FONT SIZE=2>&gt; &gt; +-----------------------------------------------------------------+</FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; _______________________________________________</FONT>
<BR><FONT SIZE=2>&gt; Chameleon mailing list</FONT>
<BR><FONT SIZE=2>&gt; Chameleon@lists.maptools.org</FONT>
<BR><FONT SIZE=2>&gt; <A HREF="http://lists.maptools.org/mailman/listinfo/chameleon" TARGET="_blank">http://lists.maptools.org/mailman/listinfo/chameleon</A></FONT>
<BR><FONT SIZE=2>&gt; </FONT>
</P>

<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Chameleon mailing list</FONT>
<BR><FONT SIZE=2>Chameleon@lists.maptools.org</FONT>
<BR><FONT SIZE=2><A HREF="http://lists.maptools.org/mailman/listinfo/chameleon" TARGET="_blank">http://lists.maptools.org/mailman/listinfo/chameleon</A></FONT>
</P>

<BR>


Disclaimer
************************************************************************
Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te 
informeren. Wij adviseren u om bij twijfel over de juistheid of de 
volledigheid van de mail contact met afzender op te nemen.

This message shall not constitute any rights or obligations.
This message is intended solely for the addressee.
If you have received this message in error, please delete it and
notify the sender immediately. When in doubt whether this message
is correct or complete, please contact the sender.
************************************************************************

<BR>
</BODY>
</HTML>