matiwinnetou / spring-soy-view

Google Closure Templates integration with Spring MVC
Apache License 2.0
16 stars 9 forks source link

SoyAjaxController: minimification using google closure library may be an overkill (large library) #22

Closed matiwinnetou closed 11 years ago

matiwinnetou commented 11 years ago

A possible alternative is Yahoo YUI JavaScript compressor:

http://yui.github.io/yuicompressor/

The task is to write an alternative implementation that uses YUI compressor instead of Google Closure, which is a bit overbloated maybe?

matiwinnetou commented 11 years ago

from .m2 repository...

closure-compiler-v20130411.jar │3'499'373

3.5 MB for a JavaScript compiler as a dependency is a bit of an overkill...

matiwinnetou commented 11 years ago

This seems to be in contrast to yuicompressor-2.4.8.jar which has about 788 KB, also not small but not 3,5 MB!

matiwinnetou commented 11 years ago

Closure seems to be better though:

http://blog.feedly.com/2009/11/06/google-closure-vs-yui-min/

matiwinnetou commented 11 years ago

http://www.bloggingdeveloper.com/post/Closure-Compiler-vs-YUI-Compressor-Comparing-the-Javascript-Compression-Tools.aspx

matiwinnetou commented 11 years ago

Created two maven modules one for google closure, one for yahoo yui, min support is not included in the main module now