announce: mod_jsmin
Posted by Ian Holsman
it’s been a long time coming.. this has been a side project since feburary. Thanks to David for nudging me to finally finish it.
mod_jsmin is an apache module (filter + handler) that can minify your javascript on the fly. In my tests it shrinks a file by 30% on average.
the idea is to concat the javascript together as a single file, and then minify it. Obviously if you can do this things before you put the file on the server it will be better, but in large places life is never that organized.
umm. Why is it good to do it on the fly?
In most cases it’s not.
in an ideal world this would be all done in the publishing side before things get launched.
but if you use this behind an akamai cache then it won’t add much load to a server, and lets people not worry about it.
Hi Ian
Works great, however we’ve had a problem compressing the SPAW HTML Editor libraries with it which gave an error.
Not investigated hugely as to where yet but any thoughts welcome
Alex
yep. i see 2 bugs.. I’ll add them as seperate issues on http://code.google.com/p/modjsmin/issues/list
regards