Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I recently released <a href="http://github.com/mishoo/UglifyJS" rel="noreferrer">UglifyJS</a>, a JavaScript compressor which is written in JavaScript (runs on the NodeJS <a href="http://en.wikipedia.org/wiki/Nodejs" rel="noreferrer">Node.js</a> platform, but it can be easily modified to run on any JavaScript engine, since it doesn't need any <code>Node.js</code> internals). It's a lot faster than both <a href="http://developer.yahoo.com/yui/compressor/" rel="noreferrer">YUI Compressor</a> and <a href="http://en.wikipedia.org/wiki/Google_Closure_Tools" rel="noreferrer">Google Closure</a>, it compresses better than <a href="http://en.wikipedia.org/wiki/Yahoo!_UI_Library" rel="noreferrer">YUI</a> on all scripts I tested it on, and it's safer than Closure (knows to deal with "eval" or "with").</p> <p>Other than whitespace removal, UglifyJS also does the following:</p> <ul> <li>changes local variable names (usually to single characters)</li> <li>joins consecutive var declarations</li> <li>avoids inserting any unneeded brackets, parens and semicolons</li> <li>optimizes IFs (removes "else" when it detects that it's not needed, transforms IFs into the &amp;&amp;, || or ?/: operators when possible, etc.).</li> <li>transforms <code>foo["bar"]</code> into <code>foo.bar</code> where possible</li> <li>removes quotes from keys in object literals, where possible</li> <li>resolves simple expressions when this leads to smaller code (1+3*4 ==> 13)</li> </ul> <p>PS: Oh, it can "beautify" as well. ;-)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload