[Mod_gzip] Re: mod_gzip v. mod_deflate

Glenn mod_gzip@lists.over.net
Wed, 5 Mar 2003 09:12:47 -0500


On Wed, Mar 05, 2003 at 02:34:30PM +0200, Michael.Schroepl@telekurs.de wrote:
> 
> > as compressing css & js files breaks certain browsers (I believe)
> 
> Netscape 4 is the "bad guy":
>      http://www.schroepl.net/projekte/mod_gzip/browser.htm#Netscape4
> 
> But as Netscape 4 has other problems as well (cannot even print com-
> pressed HTML pages!) your main choice would be to
> - ignore the problems of this broken browser from 1996 or
> - exclude it from compression (mod_gzip_item_exclude reqheader) or
> - include CSS & JavaScript with server side technology (SSI etc.) or
> - request CSS with a CSS2 syntax (@import) not supported by Netscape 4.
> 
> The last alternative is reasonable anyway, as Netscape 4 doesn't
> officially support CSS at all (it supports JSSS which lost the race
> for becoming the standard against CSS, so Netscape 4 included a quick
> and very dirty CSS implementation in the JavaScript engine - this is
> why Netscape 4 disables CSS when you turn off JavaScript ...) so that
> you need Netscape4-customized CSS anyway if you want to explicitly
> support this browser.

What excellent information!

What other browsers do not support the CSS2 syntax (@import)?
If I only used the @import syntax for CSS (or special-cased Netscape 4)
in my pages, could I safely have mod_gzip compress all CSS documents?
That would be great!

What about including JavaScript code in the CSS documents, too?

Cheers,
-Glenn