WebAppers

/ best free open source web resources /

Shopify

Condense Many Javascript Files into One and Compressed

Posted · Category: Code, License Free

ShrinkSafe is a JavaScript “compression” system. It can typically reduce the size of your scripts by a third or more, depending on your programming style.

Many other tools also shrink JavaScript files, but ShrinkSafe is different. Instead of relying on brittle regular expressions, ShrinkSafe is based on Rhino, a JavaScript interpreter. This allows ShrinkSafe to transform the source of a file with much more confidence that the resulting script will function identically to the file you uploaded.

Best of all, ShrinkSafe will never change a public variable or API. That means that you can drop the compressed version of your JavaScript into your pages without changing the code that uses it. Many of your Javascript files will be condensed into a single file and compressed.

Requirements: No Requirements
Demo: http://alex.dojotoolkit.org/shrinksafe/
License: License Free

3 Comments
  • http://www.dslreports.com justin

    I’d use this but you can only download it for OSX. The prospect of shrinking your files online and then finding the online shrinker is unavailable (for an hour, a day or more) when you need it for a modification and re-shrink would be annoying.

  • http://mr.moox.fr Mr.MoOx

    Look at http://dean.edwards.name/packer/
    I think it’s better.

  • http://www.queroveiculos.com.br/ Carros DF

    If you work with PHP you can use Class: JavaScript Compressor from PHPCLASSES. You can build a realtime compression script. The class have a very efficient caching system for compressed scripts.

Supported By

Deals

Web Browsers Icon Set
Food Icon Set
Flat Icon Set

Flat Icon Set

100 icons