announce: mod_jsmin

Posted by Ian Holsman Wed, 06 Aug 2008 03:51:00 GMT

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.

 

Tags ,  | 4 comments

Comments

  1. Avatar websta said 5 days later:

    umm. Why is it good to do it on the fly?

  2. Avatar Ian Holsman said 5 days later:

    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.

  3. Avatar Alex Judd said 9 days later:

    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

  4. Avatar Ian said 9 days later:

    yep. i see 2 bugs.. I’ll add them as seperate issues on http://code.google.com/p/modjsmin/issues/list

    regards

Comments are disabled