Version 1.1.1 of jsmin-php is now available. The only change in this release is a fix for an issue that caused excessive memory allocation when minifying very large JavaScript files.
- jsmin-1.1.1.php (7.8KB)
Version 1.1.1 of jsmin-php is now available. The only change in this release is a fix for an issue that caused excessive memory allocation when minifying very large JavaScript files.
Comments
Conditional Compilation
Thanks for this. I’ve recently used this and ran into a slight snag. Because jsmin strips all comments, among other things, it was rendering conditional compilations useless, which was a pain since in some case it will actually crash the browser. I’ve yet to try and come up with a solution, but hopefully i’ll find the time for it soon.
It wasnt that jsmin wasnt working, but rather working too well :-).
Vs. Packer's minification?
Just curious how this specs up to Dean Edward’s Packer’s minification process? I’m not talking about the base62 encoding in an eval) statement, I mean the ‘none’ encoding option that attempts to do similarly what JSMin does. Just curious about your thoughts/feedback.
Pax, - Stan
Re: Vs. Packer's minification?
I haven’t actually used Packer, but based on what I’ve read, it sounds like it generally achieves a higher compression ratio than JSMin. The flipside is that JSMin is faster and much simpler to implement.