Re: html and css code bloat

"Florian Schulze" <[email protected]> Sun, 30 May 2004 13:32:31 +0200
Newsgroups gmane.comp.web.zope.plone.devel,gmane.comp.web.zope.plone.design
Message-ID <[email protected]>
On Fri, 28 May 2004 12:20:29 -0400, Chad Whitacre  
<[email protected]> wrote:

> Hey all,
>
> Maybe this has come up before, but there is a potentially significant  
> speed boost to be had by stripping out comments and unnecessary  
> whitespace from our html and css on page generation. Specifically, it  
> looks like our code could be trimmed by about one-third. Here's the  
> numbers for plone.org's homepage, and plone.css:
>
>          original   trimmed    bloat    % bloat
>    -------------------------------------------------
>    html    37k        24k       13k       35
>    css     24k        19k        8k       33
>
>
> Are there any Zope or python products for this?
>
> chad

The html part is not really problem if you use Apache to pack the data  
before sending it to the browser. The size difference when packed is  
minimal. But most of the configurations I found don't pack css and js.  
Does this have a reason? Could someone give me pointers which explain why  
this is done? Do browsers have bugs when getting compressed css or js? I  
can't believe this is a problem, because this all happens in the http  
protocol.

Regards,
Florian Schulze



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click