back

by worik·11y ago·view on hn ↗
"An error occurred while trying to compress javascript text."

Hmmm....

Firstly I think I gave it too much JS code to deal with and it choked (about 3,000 lines).

Running it twice in a row always causes it to fail in my experience so far.

I am not quite sure what it is trying to do. I get a little report like:

Original file size : 1,009bytes JSMin : 706bytes (30%) UglifyJS : 644bytes (36%) YUI Compressor : 647bytes (35%) Closure Compiler : 638bytes (36%)

but no sign of the compressed code except the code I enter has most new lines removed. The newlines between function declarations are maintained.

The above report I pasted inline is after I asked for one algorithm to be tested (Closure Compiler) but it reported on all of them.

This is a good idea, and it would be useful if:

(a) it could cope with 3,000 lines about 120K. That is not much

(b) Gave me a bit more information about what the compression is doing. I care about more than the sizw. At the very least show me the compressed code.

(c) Let me test one algorithm at a time

peace W

1 comments
Thanks for the comment. I will try to improve it within the upcoming days!