Autooptimize is a WordPress plug-in used to integrate CSS and JavaScript code, compress and optimize websites. However, the Autooptimize plug-in has loaded some resources that cannot be accessed in China, seriously affecting the speed of opening the plug-in to set the page.
I have been using my own optimized plug-in before, and recently upgraded PHP to version 7.1.6. I found that the old version of Autooptimize does not support PHP 7. x, and cannot work properly. So I started again to make an optimized version based on the official version of Autooptimize 2.3.4. I deleted the link code and redundant functions that affect the loading speed, and now share them with friends in need.
Chinese language files are available on the official website of the latest version of Autooptimize plug-in. After installing the plug-in, go to the WP background update page and update the language file. If you are not prompted to update, you can download the language file and place it in the wp content languages plugins directory.
Note: The optimized version and the official version of WP only support PHP 7. x and above.
If you do not know the function of plug-in option settings, it is recommended that you only check Optimize HTML code and Optimize CSS code, and leave the others unchecked to avoid unknown errors.
You may be curious about what I have optimized and modified, and then watch
open shrink
In fact, it is very simple and rude. Compared with the original version, the current Autooptimize plug-in has made many changes, added the setting tab, and added some functions. The most important thing that affects the loading speed is the author module on the right. Just delete it.
The code location is in the plugins autoptimize classes directory autoptimizeConfig.php.
About 372 lines: [code]<div id="autoptimize_admin_feed" class="hidden">[/code]
Go to [code]<script type="text/javascript">[/code] and delete all.
The other "More Optimization" tab has no effect if it is not opened. If it looks uncomfortable (in fact, it is a link).
Open autoptimizePartners.php in the plugins autoptimize classless directory, and clear all the contents.
Most of the articles on this site are original and used for personal learning records, which may be helpful to you, for reference only!