[jQuery] New Yahoo Minifier - YUI Compressor
Hey folks,
Today I came across this article via DZone:
http://www.julienlecomte.net/blog/2007/08/13/introducing-the-yui-compressor/
"The YUI Compressor is a new JavaScript minifier. Its level of
compaction is higher than the Dojo compressor, and it is as safe as
JSMin. Tests on the YUI library have shown savings of about 18%
compared to JSMin and 10% compared to the Dojo compressor (these
respectively become 10% and 5% after HTTP compression)"
I've given it a test run on my own code, and it really seems to work,
version 1.4 of jMaps was 12.6k, and this compressor took it down to
4.6k minified, that's a 58% reduction in code, while producing no
errors, something I have never truly been able to get with packer.
jQuery minified with this (1.1.3) goes down to 31.5kb - not as small
as the packed version, but still an impressive reduction in size.
--
Tane Piper
http://digitalspaghetti.me.uk
This email is: [ x ] blogable [ ] ask first [ ] private