I just came across js-min. It allows for compressing jscript, even from php. That would make the jscript compression much easier than it is now.

http://code.google.com/p/jsmin-php/

Comments

kkaefer’s picture

While a PHP solution would indeed be nice, they are not as reliable as YUICompressor or Dojo Compressor. Most other solutions compress the JavaScript code with string manipulations (removing whitespace and so on), which may cause problems in certain edge cases. YUICompressor however *parses* the JavaScript code (using Mozilla's Rhino) and then outputs the tokenized version of the code without whitespace.

kkaefer’s picture

Status: Active » Fixed

Added in 5.x-dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.