Would you like to improve speed of your Magento 2 or any other site? With no programming required?
PageSpeed Module is just the right tool for that. It is a server extension that modifies html and js/css/images on the fly and makes them optimized.
Here is a before/after report of Magento 2 default luma theme eCommerce site taken with the help of thinkwithgoogle.com :
Disclaimer: to be able to benefit from PageSpeed module you need to have root privileges for your server. You need to be able to install new software on it. On the other hand some hosts have PageSpeed module preinstalled - you just have to enable it. Consult your hosting company for available options.
PageSpeed module installation is easy. If you have nginx server you can either build it from source or install a prebuilt package. Just google how to do that on your OS.
Apache users are in a better position. There are packages available for many distros.
I will describe nginx Magento 2 configuration here.
Once pagespeed is installed just add these 4 lines to server directive:
Restart nginx. Pagespeed module should now modify html of your page automatically.
The webserver might not deliver the optimized page the first time you load the page.
To allow pagespeed to instrument itself reload a page you are going to test 3 times according to this stackexchange answer.
I was able to get 99% score for my magento 2 store by just implementing those 4 lines above.
Please report to me any problems you are experiencing and I will try and guide you to the right direction.
If you find this post interesting do not hesitate to sign up for our newsletter and join the 692 people who receive Magento news, tips and tricks regularly.