[wp-hackers] Packing JavaScript
Ozh
ozh at planetozh.com
Wed Sep 19 18:42:22 GMT 2007
On 9/19/07, Kevin Newman <CaptainN2003 at yahoo.com> wrote:
> Otto wrote:
> > +1 to using a wrapper script to gzip the js's.
> > +1 to add better header control to that, to increase cache time to
> > longer periods.
> >
> http://whatever.com/blog/wp-includes/jsgzip.php?jQuery=1.2&Prototype=1.2&Mootools=1.0
So far, the best script I've seen regarding serving JS (and CSS) is to
be found here:
<http://rakaz.nl/item/make_your_pages_load_faster_by_combining_and_compressing_javascript_and_css_files>
Handles 304, Etags, browsers' inconsistencies etc.. It concatenates
and gzip stuff, reducing both the number of queries and the bandwidth
used, with a minimal CPU overhead
I implement something based on this on every site & theme I do now,
it's really great
Ozh
--
http://FrenchFragFactory.net ~ Daily Quake News
http://planetOzh.com ~ Useless Blog & Code
More information about the wp-hackers
mailing list