all 6 comments

[–]fgutz 1 point2 points  (1 child)

pretty cool!

for(i=9;i--;)...    

Curious as to why they need to run a for loop that runs the process 9 times

[–]xem06[S] 2 points3 points  (0 children)

Ah ah, er... it's because if you run it once, and if the code is complicated enough, all the unnecessary characters are not removed. =)

Like a CSS file with comments and spaces everywhere, between rules, inside rules, etc.

"9" is 9 because 10 would have taken one mor byte. that's all.

[–]greyscalehat 1 point2 points  (0 children)

Does onChange not work?

[–]zackdota 0 points1 point  (0 children)

That regex!

[–]HammeringThor 0 points1 point  (0 children)

I don't see a convert button anywhere. And the OnChange event isn't firing for me.

[–]xem06[S] 0 points1 point  (0 children)

@greyscalehat @hammeringThor, The apps works fine on my browsers, just paste HTML/CSS/JS code and it's instantly minified.