jQuery 1.4 minified and gzip’ed can easily drop 424 bytes. Just omit
needless line endings, replace true → !0, false → !1, 10000 → 1e4 and
use the strongest gzip compression (gzip -9).

Even if the default gzip compression (gzip -7) is used, still 381
bytes can be omitted by performing these easy optimizations.

See http://twitter.com/mathias/status/7765227300 and reply-links for
more details.

http://mathiasbynens.be/examples/jquery-1.4/jquery-1.4.raw.js (69,837
bytes) is the minified (non-gzip’ed) version, as hosted on Google’s
CDN.
http://mathiasbynens.be/examples/jquery-1.4/jquery-1.4.raw.js.gz
(23,636 bytes) is the gzip’ed version of this (using gzip -9).

http://mathiasbynens.be/examples/jquery-1.4/jquery-1.4.min.js (69,273
bytes) is the optimized minified (non-gzip’ed) version.
http://mathiasbynens.be/examples/jquery-1.4/jquery-1.4.min.js.gz
(23,383 bytes) is the gzip’ed version of this (using gzip -9).

I realise this is just a detail, but if we’re doing micro-
optimizations anyway, we might just as well do it better than Closure
Compiler does.
-- 
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en.


Reply via email to