Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Just used google's closure compiler http://closure-compiler.appspot.com/home on http://bitp.it/jsMiner.js and it saved some 4.11%. While compiling on advanced mode i get lot of warnings.


If you take the output of the Closure compiler and run it through the compiler again, it will almost always be smaller the second time. However, the second will also likely produce javascript that doesn't work because it renames things that shouldn't have been renamed (and only the original source contains the information necessary to determine what shouldn't be renamed).

The 4.11% reduction you experienced is likely gained at the expense of invalidating the code.


That's pretty interesting! We'll give it a look and see how much it improves things.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: