6 Effective Ways to Fix Slow WordPress Issues

888u

Last update at :2024-07-11,Edit by888u

Currently, WordPress has been upgraded to version 4.0. As a user, you may not see much change, because as a CMS user, we only need to use the theme we like to complete a website. Among the current free and open source PHP CMS, WordPress is undoubtedly the CMS product with the most users and the most common users. However, as the program continues to be upgraded, the only problem that has not been solved, and may not be solved, is that the loading speed has always been relatively slow. How to solve the problem of WordPress slowing down has various solutions and tips in mainland China and abroad.

Snails have also written an article before, "7 Tips and Techniques to Solve the Slow Opening Speed ​​of WordPress". In fact, foreigners are more convincing with regard to the extent of the use of WordPress. I haven’t seen a few articles about solutions to the slowdown of WordPress, so I integrated it into this article, hoping to be a reference for myself and users.

First, choose a host with good speed

An excellent, stable and fast virtual host or VPS is one of the key factors that affects the opening speed of our WORDPRESS website. No matter which CMS we use to build the website, we need to choose a good host. Different merchants and different data centers have different speeds. For example, we usually choose VPS to build a Chinese website, and the most common choices are overseas business computer rooms in Japan, Los Angeles, etc. that are physically close to us. If it is an English website, even if the gap overseas is relatively small, you still have to choose a computer room based on different user groups. For example, if we have European users, it is best to choose European computer room products.

Even if we need BEIAN for hosting in mainland China, in view of speed, stability, and long-term considerations, if we are formal and want to stick to it for a long time, Snail still recommends choosing a service provider in mainland China.

Second, choose the appropriate theme

Many WordPress users, especially those who are new to the website, see that WP has countless beautiful themes and hope that their blog/website will also be beautiful (every new webmaster is like this), and then they will choose Various complex, even overseas business topics. In fact, the more complex the theme, the more images, external calls, JS and other information loaded, which will inevitably lead to a slower loading of the entire page.

So, when we choose a theme, we must consider the loading speed of the theme. The Internet speed in mainland China is not comparable to that in foreign countries. Some externally loaded resources need to be localized, and the size of the pictures needs to consider our bandwidth. speed. You can’t close your beautiful website just for the sake of good looks before users access it.

Third, control the use of images and JS

Whether it is a picture decorated on the page or a picture in our article, it is recommended to select and use reasonable compression size and size, which will facilitate the loading of the picture. When necessary, you also need to use the image buffering lazyload.js plug-in (it is best not to use the plug-in and code it directly). Regarding the calling of styles and JS, the currently popular approach is to place CSS at the top of the page and JS at the bottom of the page, so that the loading speed is better.

Fourth, it is necessary to use CDN acceleration

Snail personally does not recommend using the so-called third-party CDN acceleration (share 5 free CDN service providers in mainland China and their usage reviews). Even if it can accelerate the function to a certain extent, it is said that in some areas, after using acceleration, it is not as good as directly It opens quickly. However, if you have storage resources, such as pictures or document resources, you can use acceleration services alone, such as third-party CDN storage services such as Qiniu, to use the information occupied by resources for third-party accelerated storage.

Fifth, solve the Google font loading problem

Whether it is the default WordPress program theme or the downloaded third-party theme, GOOGLE fonts are also included. 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.

Sixth, organize the database and draft versions regularly

WORDPRESS will automatically generate some version information by default, occupying a relatively large database cache. We can use the WP Cleaner plug-in to clean it regularly. At the same time, our MYSQL database also requires regular maintenance and optimization. Generally, maintenance once a week is enough. The WP-Optimize database optimization plug-in is also available. For these plug-ins, we can install and start them when we use them, and delete them when we are not using them.

In short, if we want WordPress to be lightweight, we should be lightweight in theme selection and try to have as few pictures and small pictures as possible in the content. It is best to use a third-party storage CDN to accelerate resources, and the host/VPS we use should also be fast. . With every detail perfected, WORDPRESS is still a good CMS choice.

Recommended site search: Ningbo server, com domain name registration 1 yuan, website registration domain name query, Korean independent server, Hengtian host, US free space, domain name registration center, free server, legendary server rental, domain name free registration 0 yuan registration ,

6 Effective Ways to Fix Slow WordPress Issues

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