Should I use the YUI Compressor or the new Google Closure compiler to compress my JavaScript?

Viewed 20253

YUI Compressor was the consensus best tool for minimizing, but Closure seems like it could be better.

7 Answers

Looks like jQuery 1.5 just moved to UglifyJS:

Additionally with this switch we’ve moved to using UglifyJS from the Google Closure Compiler. We’ve seen some solid file size improvements while using it so we’re quite pleased with the switch.

Related