Re: html and css code bloat

Duncan Booth <duncan.booth-+q9EdC6cpuuCZ5vHv/[email protected]> Wed, 2 Jun 2004 11:24:10 +0000 (UTC)
Newsgroups gmane.comp.web.zope.plone.devel,gmane.comp.web.zope.plone.design
Message-ID <[email protected]>
"Alexander Limi" <limi-z4DKO/[email protected]> wrote in
news:[email protected]: 

> On Mon, 31 May 2004 21:55:09 -0400, Chad Whitacre  
><[email protected]> wrote:
> 
>> Another good point, thanks. Looks like compacting code is probably
>> not  worth the trouble. BTW, found a reference re: CSS and JS on this
>> page: 
> 
> Compacting the code doesn't make much sense, correct. mod_gzip does.  
> Surprisingly few people know about it. Even Zope can do this kind of  
> encoding natively, and writing a small MonkeyPatch that turns it on
> should  be very easy. Anybody up for it? :)
> 
> In my opinion, Plone should ship with this as default.

Only if you can get it to compress without killing the site for users of 
IE.

There is a bug in Internet Explorer which can cause it to lose the first 2k 
of a compressed web page. See Microsoft's knowledge base: 
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q313712 and 
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q312496

I have also seen reports which indicate that Microsoft's fix doesn't 
actually work in all situations (e.g. when using a proxy server).

There is a kludge that apparently works: put 2k of blanks in front of each  
page.



-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504