- Pagespeed Insight, the most famous tool. It’s a page analyzer to bench page performance, and suggests what you should change in your website to speed up your website load time.
- Pagespeed Module, is the main subject of this post. This is a module, available for Nginx (ngx_pagespeed) and Apache (mod_pagespeed), automatically perform optimization to speed up your pages, without the need to change anything in your application code.
- Pagespeed Service, is a proxy managed by Google, powered by the Pagespeed Module. If you haven’t the possibility to install the module directly on your server, this is the best solution.
As I told in a previous post, this website server runs Pagespeed. Using this module I had many facilities. The module performs many optimizations, which are boring to implement, especially on a CMS…
The Pagespeed module has many internal filters, you cane enable or disable, according to your need.
There is a core set of filters, pre enabled, supposed to have low probability to break something in the website. That includes:
- The cache extension of css and js elements.
There are also many more advanced filters allowing to really optimize you website performance. These includes:
- Images recompression;
- Conversion of baseline jpeg to progressive or to WebP;
- Remove HTML comments;
A full filters list is available in the official website.
The advantages of using this module are incredible, you really speed up your website, without change a line of code, and you can concentrate only to develop.
Obviously everything has a price. In this case, there isn’t a money price, but there some disadvantages. Pagespeed could break your page code, you should deep test everything working well, especially if you use the extra core set filters.
In conclusion, Pagespeed is perfect to optimize small/medium website and the disadvantages are negligible, but for big websites, should be better integrate the optimization directly in the application code.