For more details see the Google Page Speed Optimizer extension page.
Improve your website performance by optimizing the code structure and images and get higher score in Google PageSpeed Insights.
The extension settings page can be found in Admin Panel → System → Configuration → Google Page Speed Optimizer
The extension uses external Google Closure Compiler for JS minification. So please make sure external domain can be reached from your server without any restrictions.
There are three JS Minification Levels available: Remove Whitespaces, Simple Code Optimization, Advanced Code Optimization. Please find more details about minification levels here.
With enabled Ignore *.min.js Files option already minified JS files (usually contains “min” in the URL) will be skipped during minification.
Minification Source - You can select the File URL option, in case you want to exclude possible file encoding issues.
Set the option to ‘Yes’ to enable CSS code minification. During the minification process all unnecessary characters like new lines, comments and others will be accurately removed without affecting your source code.
Works the same way as the CSS Minification. Extra white spaces, comments, and formatting will be cleaned off the HTML code.
Add Timestamp To URLs of All CSS/JS Files setting adds timestamp to all JS and CSS files to make browser automatically update cached values once they are changed. Useful with high HTTP cache lifetime values.
More details about HTTP caching can be found here.
In order to improve the loading time of the page, it is recommended to place JavaScript files at the bottom of the page. Enabling Move Javascript to Footer will move all JS scripts to the footer, except scripts from the Ignore List. Replaced analytics scripts can stop working, so it`s a good idea to put them to the exceptions list.
Large images often increase page loading time. The extension allows optimizing images without losing the quality.
Usually, store owners or admins don`t have enough permissions to install software on the server. So it`s time to contact hosting company or system administrator.
Enable the Automatically Optimize Product Images option to compress on the fly all product images generated by Magento.
Command For Optimization settings allow using other tools (for example, pngquant instead of optipng to convert png24 to png8) or change optimization parameters (jpegoptim --all-progressive --strip-all will remove ICC profile and decrease the size of jpg/jpeg files, but it can change the color of the images).
To optimize images stored in skin and media folders you need to enter your server via ssh, open Magento root directory and run the command:
php -f shell/amoptimization.php -- optimize
The extension can help to solve the following issues (click on the issue to find the solution):
Unfortunately, there is no clear answer, as there are a lot of circumstances.
You can check your site in PageSpeed Insights tool to find the list of problems on your site and compare it with the list of the issues our extension can help with.
Yes, the extension is fully compatible with the native Magento JS/CSS merge functionality.
Please check if the cron job is running and if there is direct access to the Magento from the internet, as the external minification tool is used.
Please note, some time for js minification is needed (approximately 1 hour).
Please make sure you followed both product images optimization and theme images optimization guides.
The issue can be caused as well by using large source images – the image shown on the front end is much smaller than the original file. Resizing of the original images can solve such issues.
1. Remove the following files:
2. In the database:
3. Flush Magento Cache in Admin Panel.