What should I do if my WordPress website is slow?

888u

Last update at :2024-04-25,Edit by888u

WordPress is probably the most popular website building program, but one criticism is that it opens too slowly, which is often unbearable. There are many reasons why wordpress opens slowly, some of which are controllable. Let’s take a look at how to set up wordpress correctly to speed up the opening speed of wordpress websites.


Google fonts are a drag on website speed

Whether it is the default WordPress program theme or the downloaded third-party theme, it also includes GOOGLE fonts. We need to install the Disable Google Fonts plug-in to solve the problem. If there are fonts loaded in the theme, we also need to replace googleapis with useso in the corresponding theme code. Of course, localization also needs to be considered for corresponding calls to other external resources.


Too many unnecessary header loading files

When we see this, we can go to the source code of our WP website to see if we see a lot of JS and CSS loading items in the header, as many as a dozen, and then we can look at themes like the big front end. There is basically no unnecessary loading in the source code and header, so their themes load and open very quickly, so it is necessary for us to eliminate unnecessary JS loading.


Remove unnecessary plugins

In theory, it can be done without plug-ins. Some plug-ins are not very well written, which greatly slows down the opening speed of the website.


There may be too many database cache files

By default, when we write an article in the background, it will be automatically saved as a revised version for us after a period of time. Such a revised version will be automatically saved to the data center. We cannot see it in the front desk. After using it for a long time, the revised version will be There are many, many. We may not have many articles, but there are many recorded articles. We need to delete the revision and not allow the revision to be added to the data center.

Solution: Add "define('WP_POST_REVISIONS', false);" code in the wp-config.php file.


Delete spam comments promptly

Spam comments are loaded into the database, thus increasing the load on the entire website and machine. Delete them promptly.


Optimize image caching

Especially with the current demand for flat experience, we like to use more image content. We can use plug-ins or JS effects similar to image buffering. For example, we can use the jQuery lazy load plugin to solve image buffering, and the user experience is also better. , the image is loaded from top to bottom, with a gradient effect.

At the same time, we also need to use the WP-Super-Cache plug-in so that the content can be cached.

Recommended site search: host server rental, mainland China site group server, domain name directory, registration website, Japanese proxy server IP US server defense, registration-free CDN, cloud server rental, high defense server, foreign vps server Rent,

What should I do if my WordPress website is slow?

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码