SLIM: JavaScript Compression

Compress scripts, html, css, json, and text

                                               
 I N
OUT
Results
No Compression Performed
For comparison: http://compressorrater.thruhere.net/   
Related: web2.0 compressor
v1.1 : © 2011, by dandavis.   About



About Slim

Take a pocket version of SLIM with you simply by 'save as'ing and opening later: it will function without internet.

SLIM puts the maximum squeeze on small javascript libraries using a technique invented by dan: unused single-character replacement. Most javascript minifiers only strip white-space, leaving a lot of redundancy in the script. Code-rewriters like Dean Edwards' Packer can remove the redundancy, but it breaks my code sometimes. SLIM avoids code-breaking while delivering maximum compression on small scripts (1-25kb).

With an overhead of under 200 bytes, SLIM compresses small files better than anyone.

Owing to a complete rewrite of the core, and additional algorithmic tweaks, this version of SLIM squeezes plain text and structured text like JSON, XML, better than ever.

creative commons share alike attribution applies.


While Slim is original, this demo/tool uses Dean Edwards' Packer Doug Crockford's JSmin. Thanks!

Thanks !