[Solar-talk] Squished JS and CSS
Travis Swicegood
development at domain51.com
Sat Dec 23 12:18:46 PST 2006
Rodrigo Moraes wrote:
> Gzipped javascript/css is easy to achive with mod_gzip or mod_deflate
> (I have just turned mod_deflate on on my server to serve php and
> javascript, and content-lenghts are now 40% smaller). The idea above
> includes the gzip utility and also has benefit to serve only one file,
> be hable to group them and hook a compressor to be used automatically
> when files are changed. Too much for such a simple thing? Any
> thoughts?
>
I don't believe it handles gzipping, but I'm pretty sure HTML_AJAX can
compress output for JS files automatically (strip out all whitespace).
I can't remember the parameter you have to pass to it off of the top of
my head, but it would be worth looking in to. It also has the ability
to mash multiple JS files into one request as well.
It might be something to look at for a base.
-T
More information about the solar-talk
mailing list