Caching means saving a static copy of the website on the server that will serve users so that you do not have to query the database.
If the URLs to be cached are internal , you can use plugins like WP Rocket or W3 Total Cache .
The difficulty lies in when these URLs are external , to optimize the website you must follow these steps:
In the case of Aula CM, the URLs that needed to be cached came from Analytics and Facebook Events, so it was decided to load the Analytics and FBEvents code locally on the hosting.
A script was then created that runs a scheduled task every 4 hours and saves updated versions of the Analytics and FBEvents scripts to a directory.
Finally, the header.php was edited and the URLs of both codes were changed to load locally.
In this way, it was possible to improve the WPO for both loading speed and YSlow .
[Tweet «Cache as many URLs as you can to improve loading speed and YSlow #WPO»]
Scaled images
Sometimes images are used in sizes smaller than those of the austria telegram lead uploaded to the website. This causes the page to weigh more than it needs to and therefore it will be necessary to perform a web optimization or WPO.
You can use plugins like:
SVG Support: You can choose to use SVG format for your images, which will make them even smaller than PNGs, and give you infinite quality images.
Regenerate Thumbnails: With this plugin you can resize images to a size you set. In order for the website to use the given size, you must use code.
Defer Parsing of Javascript
This happens when a large number of Javascript requests are being made in the header of the web page, blocking the fluidity of the page.
To optimize Defer Parsing you can reduce the number of javascript files on the web, this way there will be fewer calls. Two good plugins to eliminate this problem are:
WP Rocket
JS & CSS Script Optimizer
Another way to optimize it would be to use asynchronous loading .
Asynchronous loading will make the files load in parallel, the files will be loaded when we need them
To perform asynchronous loading of the website, we can use plugins such as:
WP Rocket
Asynchronous Javascript
Remove Query Strings
They refer to dynamic URLs that are created in some files and that can slow down the loading of the web page.