Magento module to optimize Javascript and CSS files and improve speed of your website
It is a Magento module which allows you to optimize and minify your css and js files by allowing you to use different available compression libraries and methods. It's completely configurable following the capabilities of each libraries
Inspired by the module from Yoast, this feature allows you to create canonical urls of your catalog (products, categories, search products and cms pages). Please visit the website of Yoast for more information: http://yoast.com/articles/magento-seo/
This feature is implemented in this module too, to help you to have less as possible different modules.
modman clone https://github.com/diglin/Diglin_UIOptimization.git
Follow the instructions in the configuration page In case of Access Denied in the backend: clear your cache, logout/login. In case, it still doesn't work, save again the user role in System > Permissions > Roles. This module is not compatible with Fooman Speedster and Yoast Canonical Url modules. Deactivate them before to use this module by editing the app/etc/modules/MODULE_TO_DEACTIVATE.xml of the module and set enable to false.
As promised, I provide you below the statistic of compression and ratio by using the different libraries:
Compressed/Minified file statistic and comparison by using default Magento template, sample data, configuration for Diglin User Interface Optimization module is for all by default. Only the method to compress/minify is changed. Merging file has no influence on compression but has influence on number of HTTP requests which is also an important point.
**** JS compression (analyzed with YSlow):
no compression, no miniying, no merging: 329.8 Kb
JSMin (unmerged, no gzip): total 230.4Kb (31% of compression)
JSMin (merged, no gzip): total 230.4Kb
JSMin (merged, gzip): total 56.8Kb (compression 83%)
YUI compressor (unmerged, no gzip): total 193.6 Kb (compression 41%)
YUI compressor (merged, no gzip): total 193.6 Kb
YUI compressor (merged, gzip): total 52.6 Kb (compression 84%)
Packed (unmerged, no gzip): total 133.5 Kb (compression 59%)
Packed (merged, no gzip): total 133.5 Kb
Packed (merged, gzip): total 44.5 Kb (compression 86.5%)
**** CSS compression (analyzed with YSlow):
no compression, no miniying, no merging, no gzip: 95.9 kb
CSS Tidy (unmerged, no gzip): total 79.8 Kb (compression 17%)
CSS Tidy (merged, no gzip): total 79.8 Kb
CSS Tidy (merged, gzip): total 14.7 Kb (compression 85%)
YUI compressor (unmerged, no gzip): total 82.7 Kb (compression 14%)
YUI compressor (merged, no gzip): total 82.7 Kb - YUI compressor (merged, gzip): total 14.5 Kb (compression 85%)
Google Minify (unmerged, no gzip): total 79.9 Kb (compression 17%)
Google Minify (merged, no gzip): total 79.9 Kb - Google Minify (merged, gzip): total 14.9 Kb (compression 84.5%)
CONCLUSION: