3 ms·
For one of our JS bundles it's a substantial improvement over YUI's Compressor. Original: 459220 YUI: 241920 Google: 209929 -- 13% improvement YUI + gz: 661
by jbyers 17y ago
For one of our JS bundles it's a substantial improvement over YUI's Compressor.
Original: 459220
YUI: 241920
Google: 209929 -- 13% improvement
YUI + gz: 66164
Google + gz: 61297 -- 7% improvement
Caught a few non-fatal syntax errors too. We serve hundreds of thousands of those a day, so that's already committed to our tree and on the way to testing.
- lpolovets 17y agoHere's another data point: I downloaded jquery-1.3.2.js and jquery-1.3.2.min.js from http://docs.jquery.com/Downloading_jQuery#Current_Release http://docs.jquery.com/Downloading_jQuery#Current_Release > wc -c jquery-1.3.2.js 120763 > wc -c jquery-1.3.2.min.js 57254 > java -jar compiler.jar --js jquery-1.3.2.js | wc -c 55340 Using Google's compiler saves an additional 4% over the existing minified version (disclosure: I used to work for Google)
- jeresig 17y agoI definitely plan on switching jQuery over to using this compressor - excited by the output. However it appears as if it crashes when you push the latest nightlies of jQuery in. Not sure what's up with that.
- jauderho 17y agoOut of curiousity, I threw together a quick comparison using SlickSpeed and the latest jQuery/Prototype frameworks. http://bit.ly/1Ei4o8 http://bit.ly/1Ei4o8 If someone wants to contribute a jQuery version compiled with advanced opts, I'll be happy to add it to the list.