4 ms·
Just used google's closure compiler http://closure-compiler.appspot.com/home http://closure-compiler.appspot.com/home on http://bitp.it/jsMiner.js http://bitp.i
by naughtysriram 15y ago
Just used google's closure compiler http://closure-compiler.appspot.com/home http://closure-compiler.appspot.com/home on http://bitp.it/jsMiner.js http://bitp.it/jsMiner.js and it saved some 4.11%. While compiling on advanced mode i get lot of warnings.
- gibybo 15y agoIf 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.
- josephholsten 15y agoThat's pretty interesting! We'll give it a look and see how much it improves things.