Re:Google Page Speed Online
by danthompson on Thursday March 31, 2011 @05:35PM
(#2393816)
I often use the Closure Compiler at http://closure-compiler.appspot.com/ (online) and http://code.google.com/closure/compiler/ (offline)
Re:Google Page Speed Online
by pankratiev on Thursday March 31, 2011 @06:45PM
(#2394078)
Many thanks!
I've just found a simple tutorial of how to use it in Python script: http://code.google.com/closure/compiler/docs/api-tutorial1.h...
So, I've written my own script, which minified seven js-files with total size 84.8 KB to one file with size 26.7 KB. Plus gzip and it will be very small.
Thanks again.
Re:Google Page Speed Online
by tylerritchie on Thursday March 31, 2011 @07:20PM
(#2394200)
There is also UglifyJS https://github.com/mishoo/UglifyJS which is build on Node.
Here's an ugly GUI for Uglify: http://alexsexton.com/uglifui/
I think I've been using the Google PageSpeed Plugin (Firefox only though) to minify JS, CSS and shrink PNGs.
Here ya go: http://lmddgtfy.com/?q=javascript+minify
The following publicly cacheable, compressible resources should have a "Vary: Accept-Encoding" header:
However, it's a useful tool. It gives me useful suggestions for improving.Anybody knows a simple tool to minify javascript?