Google PageSpeed Insights

This is a third-party service created by Google. The service inspects your website and gives you feedback about what needs to be optimized on your website in order to get a higher Page Speed Score. More information for the service can be found here:

https://developers.google.com/speed/docs/insights/about

NoteThe top-ranking websites in Google have an average score of 80.78. Websites with higher scores are considered well optimized.

You may run a manual PageSpeed inspection from the following URL:

https://developers.google.com/speed/pagespeed/insights/

Make sure that you have accessed your website home page at least once before the inspection, so that Google PageSpeed Insights can work with the optimized OpenCart content.

After you do the inspection for Desktop, Google PageSpeed Insights may return one or more of the points described below.

Optimize images

Typically PageSpeed reports images, which can be compressed losslessly. If you receive such images you can run them through the NitroPack Image Optimization. More information can be found in Image Optimization.

Eliminate render-blocking JavaScript and CSS

This point can be resolved by enabling the NitroPack JavaScript and CSS combination. More information can be found in Minification.

NoteIt might not be possible to combine all CSS and JavaScript resources, depending on your theme and installed modules. For example, your website could be loading content from http://www.google-analytics.com or http://fonts.googleapis.com which will not get into the combined files. In such cases in order to optimize this point, you will need to manually remove the code which calls these third-party resources.

You can try to move the JavaScript content to the bottom of the page and enable the defer attribute (more info in Minification). Make sure to test how this works for your website, since it might not be compatible with the hard-coded JavaScript in your theme or modules.

Reduce server response time

This point is optimized by enabling NitroPack page cache. If after enabling page cache, Google PageSpeed Insights keeps reporting this point, you might need to switch your web hosting provider with a faster Input/Output speed. A cached page is typically returned within less than 500 ms.

Information about NitroPack page cache can be found in Page Cache.

Prioritize visible content

This point depends on the architecture of OpenCart, hence it cannot be further optimized. If you do changes to optimize this points, there is a high chance for bugs and unexpected behavior on your website.

Leverage browser caching

This point is resolved by enabling the NitroPack browser cache. If PageSpeed insights still reports this point after enabling NitroPack browser cache, this is most probably due to third-party resources, related to Google Analytics, Zopim Chat, Facebook, Twitter, etc. If you wish to optimize this point, consider removing these third-party resources.

More information can be found in Browser Cache.

Minify JavaScript and Minify CSS

This point can be resolved by enabling the NitroPack JavaScript and CSS minification. More information can be found in Minification.

Note: Consider using the NitroPack experimental features. Make sure to test your website after enabling them, because they might not be compatible with parts of your OpenCart theme or modules.

It might not be possible to minify all CSS and JavaScript resources, depending on your theme and installed modules. For example, your website could be loading content from http://www.google-analytics.com or http://fonts.googleapis.com which will not get into the minified files. In such cases in order to optimize this point, you will need to manually remove the code which calls these third-party resources.

Minify HTML

This point can be resolved by enabling the NitroPack HTML minification. More information can be found in Minification.

Make sure to test your website after enabling the HTML minification, since it might not be compatible with your installed OpenCart theme or modules. If the NitroPack HTML minification is not compatible with your theme, it is recommended to disable it.