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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

AntiNSA’s picture

Anyone using this?

AntiNSA’s picture

Priority: Normal » Major

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

mikeytown2’s picture

subscribe/hijack... #1109978: Add support for php_jsmin extension

Committed this code

dougp’s picture

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.

  • jsmin
  • jsmin+
  • jsmin.so php extension

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.