Posted by GreenReaper on February 24, 2011 at 11:34am
4 followers
| Project: | Javascript Aggregator |
| Version: | 6.x-1.5 |
| Component: | Code |
| Category: | feature request |
| Priority: | major |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
The php_jsmin extension, being pre-compiled code, is likely to be significantly faster than the PHP-based JSMin even when using APC. Attached is a patch to enable its use.
| Attachment | Size |
|---|---|
| javascript_aggregator.module.php_jsmin.patch | 2.3 KB |
Comments
#1
Anyone using this?
#2
So, do you check the box for:
GZip JavaScript
Use php_jsmin instead of JSMin
Use JSMin+ instead of JSMin
aLL THREE, OR JUST ONE OF THREE , OR JUST GZ ZIP and php_jsmin?
Thanks for the help. Maybe good to put in readme
#3
subscribe/hijack... #1109978: Add support for php_jsmin extension
Committed this code
#4
I made my own version of this without realising that someone had already done it. I like my version better, it replaces the "javascript_aggregator_jsminplus" variable with a "javascript_aggregator_minifier" setting which allows you to select only one minifier.
I think ideally though, the module would be extensible with some sort of hook to implement other minifiers/javascript processors, there are quite a few other ones out there.