WordPress websites usually have several plug-ins, especially foreign trade websites sometimes install dozens of plug-ins. When visiting the front and back of the website, you will find that the speed is not as fast as before.So useAsset CleanUp Plug inIt can be loaded on demand, and the unused jsCss code does not allow it to take effect.
Website speed optimization is particularly important in Google seo optimization, because Google's speed requirement has reached 2 seconds to open the page, so WordPress websites will do everything possible to optimize code to improve website opening speed.
1、Asset CleanUp installation
In WordPress background>Plug in>Install Plug in, search Asset CleanUp, install and enable it.
2、Asset CleanUp Enable Test Mode
Enter plug-in settings, find Stripping the "fat", the default is unread, and click the update all settings button after opening.The read status is displayed.
The plug-in is ready to work and start setting parameters.
To be safe, we can start the test mode and try it first.
3、Asset CleanUp Settings
Follow the steps below if the optimization plug-in is not used:
Optimize css: enable all options,Defer css loaded in the body footer can only be used in the pro version.
Optimize JavaScript: enable all options except the pro version
Site Wide Common Unloads: delete emoticons and comment codes of the whole site.The options related to Gutenberg depend on whether to edit with Gutenberg
HTML Source CleanUp: Clear the html tags in the header. It is recommended to turn them on
Local Fonts: rarely used
Google Fonts: China selects Remove All to remove Google fonts, and foreign trade websites merge requests and preload
Disable XML-RPC: disable the XML-RPC protocol. It is recommended to disable it completely.
4、Asset CleanUp Page Uninstall
Opening unload means that the CSS or plug-in is not displayed on the current page, or not displayed on all pages (choose one from the other).
The options here should be seen clearly. You can't choose them randomly.For example, some css are useful, but if you uninstall them, the front page will get out of shape.
5、Asset CleanUp Plug in Test Results
Dux themed Weieisi notes and another Astra themed website were tested respectively, and the results are as follows:
Dux theme+Gutenberg editor,Js code is rare). The difference between the effect before and after Asset CleanUp can be ignored.
In the case of Astra theme+elementor plug-in+elementor pro plug-in, it has a certain effect. It is estimated that various functions are not used much.
The number of plug-ins used by these two websites does not reach as many as dozens, so the effect of using them is not very different.
6. Summary
If your website uses too many plug-ins (more than 10 to 20), you can consider usingThe Asset CleanUp plug-in optimizes the cssjs、Font, etc.
Asset CleanUp plug-in andWp rocket plug-inThe cooperation effect is better.
Article name: Asset CleanUp Plug in Demand Load Optimized Unused js css Code Article link:https://www.vpsss.net/27207.html Copyright notice: The resources of this website are only for personal learning and exchange, and are not allowed to be reproduced and used for commercial purposes, otherwise, legal issues will be borne by yourself. The copyright of the pictures belongs to their respective creators, and the picture watermark is for the purpose of preventing unscrupulous people from stealing the fruits of labor.