firewizard / magento-minifier
Magento on-the-fly CSS & JS minifier
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 3
Forks: 1
Open Issues: 0
Type:magento-module
Requires
This package is auto-updated.
Last update: 2024-12-11 23:51:04 UTC
README
Magento on-the-fly CSS & JS minifier, with layout handle merging and automatic file renaming.
Facts
- version: 1.1.1
- extension on GitHub
- direct download link
Description
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
Requirements
- Same as your Magento installation
Compatibility
- Magento >= 1.4
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
- 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
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.
Contribution
Any contribution is highly appreciated. The best way to contribute code is to open a pull request on GitHub.
Developer
Cristian Nicolescu
http://mandagreen.com
@firewizard