This is a very good module to improve performance, my Drupal website got an "A" on "Make fewer HTTP requests" YSlow starting from an "F". :-)
Since a big JS file is generated, can you implement a JS minifier to reduce the file size? Minification on a per-module basis is quite difficult, but with a single big file is possibile. You can add an options like "strip comments" to leave user freedom to minify.
Here some open questions that minification can solve:
Comments
Comment #1
derjochenmeyer commentedI did some research on this, but i didnt find a save way to do it.
Winm Leers also pointed out this issue http://drupal.org/node/210447
Its seems that the js aggregation which is built into drupal6 is not using file compression on js files because too many unsolvable problems occurred.
If you have a save approach, contribbutions are welcome. :)
Comment #2
chirale commentedI read a good introduction to this topic on the The JavaScript Minifier (JSMIN) page by Douglas Crockford.
Code to be minified should satisfy some requisites like:
So you've to check the code before minify it, or you get errors.
PHP code of minifier is available here, but it's released under a MIT license. Are there some GPLed alternatives?
From what i seen, a minifier with this module should:
Comment #3
derjochenmeyer commentedHi chirale, the problem with the licence could be solved as with other non GPL components. That an advanced user adds the libary manually. A README file can provide instructions.
The problem with jsmin for php is that it requires PHP5+
I think that narrows down the circle of possible users :(
Comment #4
derjochenmeyer commentedMarking this as a won't fix, since its not the main focus of this module and it seems problems cannot be solved for the majority of users.