Java script compressor

JavaScripts Compressor You can compress and obfuscate your javascript files with this free online javascript compressor. Compressing your scripts will make them download faster, reduce bandwidth usage and make it harder for others to steal your code. The javascript compressor leaves function names and global variables untouched, so your script will continue to work with other scripts.




This is the encoding type that will be used by phpJSO; it is simply how you want phpJSO to compress and encode your code. For VERY large code (6,000 lines or more without comments) either turn encoding off, or encode about 3,000 lines at a time. This will ensure that browsers execute the code quickly. Please note that encoding does NOT change how your code works AT ALL.


This option is recommended for large javascript files (above 1,000 lines of code without comments); the larger a script is, the longer it will take to decompress. you won't notice much of a speed difference with smaller scripts. note, however, that this option also makes the compressed code slightly larger. See the "encoding type" option; this option doesn't matter if you turn encoding off.


This option helps compress code to miniscule sizes. It "collapses" code blocks whenever possible. For example, if(1){alert(1);} becomes if(1)alert(1);. In short code it may not make a huge difference, but it can in longer code. It also makes phpJSO slightly slower.


If you select this option (recommended), phpJSO will change code sections like "1+1" to "2", or "100-(20+30)" to "50". This is a very fast operation and can help reduce code size as well as speed up running times.