JScrambler, a JavaScript Compressor and Minifier
Compress and minify your JavaScript source code with JScrambler. JScrambler offers the best performing JavaScript compressor on the Web and you can use it for free to achieve faster loading times and save on bandwidth.
Minify your JavaScript
JavaScript minification removes unnecessary information from your JavaScript source code:
- Removes comments and unnecessary whitespaces
- Replaces local names for meaningless smaller ones
- Reuses same names used on another private scope to delay the need of two (or more) character names
- Removes unnecessary braces
- Removes unnecessary semicolons
- Shares the same var with more than one declaration inside the same scope
- Creates declarations to replace literal duplicates
- And much more!
Check out some minification transformation examples from JScrambler
JScrambler Javascript minification reduces your JavaScript size without breaking any functionality. The minifcation process will also improve the webserver HTTP gzipping results, in conjunction minficiation and gzip achieve the highest degree of compression.
JScrambler, JavaScript Compressor
Unlike JavaScript minification, compression will not delete information. JScrambler JavaScript compressor uses dictionary compression, a lossless data compression algorithm that uses as dictionary your own JavaScript source code to replace duplicates by a reference to the existing match.
JScrambler minification and compression may be used together to achieve additional levels of JavaScript compression. Check out the comparison between JScrambler and other JavaScript Compressors:
| Source | Javascript Obfuscator 4.0 | Dean Edwards' Packer 3.0 | JScrambler |
|---|---|---|---|
| jQuery 1.5.2 219 227 bytes 100% |
jquery-1.5.2.jsob4.js 79 708 bytes 36.35% |
jquery-1.5.2.packer.js 66 266 bytes 30.23% |
jquery-1.5.2.jscrambler.js 55 968 bytes 25.53% |
| MooTools 1.3.1 145 417 bytes 100% |
mootools-core-1.3.1-full-compat.jsob4.js 66 909 bytes 46.00% |
mootools-core-1.3.1-full-compat.packer.js 59 868 bytes 41.17% |
mootools-core-1.3.1-full-compat.jscrambler.js 50 785 bytes 34.92% |
| Prototype 1.7 163 313 bytes 100% |
prototype.jsob4.js 69 018 bytes 42.26% |
prototype.packer.js 61 472 bytes 37.64% |
prototype.packer.js 50 730 bytes 31.06% |
Sign up now to compress and minify your JavaScripts
When to use one or another (or both)?
If you are planning to use gzip at your server to pre-compress (dynamically or not) your JavaScripts you should use the JavaScript minification to achieve better results. Combine it with JScrambler JavaScript compression and achieve even smaller JavaScripts. However when combined with other dictionary compression algorithms (e.g., mod_deflate, mod_gzip) the additional redundancy reduction originated by the first dictionary compression can influence the efficiency of server pre-gzip compression.
Each case is unique, so there is no simple answer. On most cases gzip combined with minify or in conjunction with JScrambler JavaScript compressor achieve much better compression than using just gzip. Signup and test out JScrambler compression and minification.
Last modified at April 14, 2011