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

前端 未结 7 1902
野趣味
野趣味 2021-01-30 08:47

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

7条回答
  •  滥情空心
    2021-01-30 08:56

    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.

提交回复
热议问题