Has anyone installed Google Pagespeed Module into Magento? Is the implementation too hard to do it?
-
Why don't you use the actual server side Google Pagespeed extension? This isn't something Magento should be doing. Here's some starter configuration for you if using MageStack sonassihosting.com/help/magestack/…– Ben LessaniCommented Aug 26, 2015 at 7:18
-
I thought Google was killing it off?– ladle3000Commented Aug 26, 2015 at 9:41
-
No, they stopped the PageSpeed hosted product, not the open source module. See groups.google.com/forum/#!topic/page-speed-service-discuss/…– Ben LessaniCommented Aug 26, 2015 at 13:33
4 Answers
This is the one good module which allows you to configure google pagespeed easily.
Play with it
https://github.com/mediarox/pagespeed
I strictly recommend you to use this one in your dev. environment. Once you test all the features, You can move into production.Cheers.
-
Tks so much for the tip. However, have you implemented it in a website? Is it too hard to do it? Does it work well with magento?– RodSicCommented Aug 26, 2015 at 5:07
-
No, Its not that hard. It is very easy. Tanmay Kamath point is good. Accept mine as answer if it satisfy your quench LOL. :)– SundarCommented Aug 26, 2015 at 5:23
-
The module was easy to implement and worked as expected. However with FPC on it stopped working, so we uninstalled it.
Nope its not hard. Download the file from the link above. Place the files in appropriate folders. Edit the config file as per your needs. Login to magento admin panel. Configuration path: System > Configuration > ADVANCED > Pagespeed You will be able to see the pagespeed module there.
I just thought I would share an outline of my recent efforts using the pagespeed_mod on Apache. It greatly improves page loading speed but is a pest when trying to update the site. This is the approach I took to make it less of a pain:
1: In the pagespeed module conf I set the cache directory to be inside the Magento var folder to make it easier for web scripts and my remote access user to get to it.
2: Wrote a script to recursively delete the contents of that said folder. See this stackoverflow post on this.
3: Added a new button to the clear cache admin page to call said script. You can do this by adding admin layout xml similar to this:
<adminhtml_cache_index>
<reference name="cache.additional">
<block type="core/template" name="jh-pagespeedcache" template="pagespeedcache.phtml"/>
</reference>
</adminhtml_cache_index>
You can base your phtml contents on the existing clear cache buttons.
Just saves a bit of time and annoyance when you need to update the live site.