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
- Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: Performance
- 3,641 sites report using this module
- Created by slydevil on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 3.x-dev updated 15 Jan 2024 at 17:42 UTC
Development version: 7.x-1.x-dev updated 15 Jan 2024 at 17:43 UTC