Mandagreen_Minifier
Magento on-the-fly CSS & JS minifier, with layout handle merging and automatic file renaming., (*1)
Facts
Description
The extension uses CssMin and JsMin to sqeeze every byte out of the css and javascript resources., (*2)
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, (*3)
All available settings can be found under Admin - Configuration - Developer., (*4)
The extension rewrites 2 Magento classes:
- Mage_Core_Model_Layout_Update
- Mage_Core_Model_Design_Package, (*5)
Requirements
- Same as your Magento installation
Compatibility
Installation Instructions
Manually
- Clone the repository or download the latest version
- Copy all the files into your Magento document root
Via modman
- Install modman
- From your Magento root folder, run
modman clone https://github.com/firewizard/Mandagreen_Minifier.git
Via composer
{
"require": {
"firewizard/magento-minifier":"*"
},
"repositories": [
{
"type": "composer",
"url": "http://packages.firegento.com"
}
],
"extra":{
"magento-root-dir": "./"
}
}
- From your
composer.json
folder run php composer.phar install
or composer install
Final steps
- Clear the cache, logout from the admin panel and then log back in
- Configure and activate the extension under System - Configuration - Developer.
Uninstallation
- 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
Support
If you have any issues with this extension, open an issue on GitHub., (*6)
Contribution
Any contribution is highly appreciated. The best way to contribute code is to open a pull request on GitHub., (*7)
Developer
Cristian Nicolescu
http://mandagreen.com
@firewizard, (*8)
License
GNU General Public License, version 3 (GPL-3.0), (*9)