The Minify JS module allows a site administrator to minify all javascript files that exist in the site's code base and use those minified files on the front end of the website. The module does not do this on the fly but instead provides an interface to allow the administrator to scan for files and minify files in a batch. The minified file then replaces the unminified version on page load. This module is compatible and more performant than the core implementation.

The 3.x version of the module which uses Matthias Mullie's PHP library 'Minify' to minify the javascript files.

This module also plays nicely with the S3 Filesystem module and the Google Cloud Storage Filesystem module.

The companion module Minify Source HTML module minifies page source HTML.

Upgrading from 1.0 to 3.0 version

The 2.0 (and 3.0) version shifts the core functionality of the module from the controller into a service. To upgrade:

  • uninstall the 1.0 version
  • update the code to the new 3.0 version
  • install

Project information

Releases