Magento on-the-fly CSS & JS minifier, with layout handle merging and automatic file renaming.
- version: 1.1.1
- extension on GitHub
- direct download link
The extension uses CssMin and JsMin to sqeeze every byte out of the css and javascript resources.
Advantages
- Faster loading times
- Less stress on the server and on bandwith
- Improving PageSpeed score with 4-8 points
- Checking 4 to-do's from the Web Performance Best Practices Guide
- Browser & reverse proxy cache invalidation through automatic filename changes – works great with CloudFront and Varnish
- Layout handle merging algorithm, so common resources get cached on the client-side
All available settings can be found under Admin - Configuration - Developer.
The extension rewrites 2 Magento classes:
- Mage_Core_Model_Layout_Update
- Mage_Core_Model_Design_Package
- Same as your Magento installation
- Magento >= 1.4
- Clone the repository or download the latest version
- Copy all the files into your Magento document root
- Install modman
- From your Magento root folder, run
modman clone https://github.com/firewizard/Mandagreen_Minifier.git
- Install composer
- Install Magento Composer
- Create a composer.json into your project like the following sample:
{
"require": {
"firewizard/magento-minifier":"*"
},
"repositories": [
{
"type": "composer",
"url": "http://packages.firegento.com"
}
],
"extra":{
"magento-root-dir": "./"
}
}
- From your
composer.json
folder runphp composer.phar install
orcomposer install
- Clear the cache, logout from the admin panel and then log back in
- Configure and activate the extension under System - Configuration - Developer.
- Remove all extension files from your Magento installation:
app/code/community/Mandagreen/Minifier
app/etc/modules/Mandagreen_Minifier.xml
app/locale/en_US/Mandagreen_Minifier.csv
- Via modman:
modman remove Mandagreen_Minifier
- Via composer, remove the requirement of
firewizard/magento-minifier
If you have any issues with this extension, open an issue on GitHub.
Any contribution is highly appreciated. The best way to contribute code is to open a pull request on GitHub.
Cristian Nicolescu
http://mandagreen.com
@firewizard