People often ask:WordPress website opens slowly with foreign themesHow to solve it?Because the effect of foreign themes is very beautiful and consistent with html5, there are many friends who use foreign themes to build websites. Especially, they can customize a lot of content using the beautiful atmosphere on domestic websites, which is very popular.The main reason is that foreign themes will reference many js and css files, which are placed on foreign servers, such as the google server, or the theme's own server.The situation of domestic and foreign network connectivity is relatively poor. When you choose a domestic server, foreign themes will open slowly. In fact, there are solutions to this situation.
The problem of slow opening of foreign themes mainly occurs on mainland servers. There are several solutions to this problem, which can be combined with improving the speed of website opening.
Use Hong Kong server
If you can't stand the slow opening of the mainland server+wordpress+foreign theme, and just don't want to file the domain name, you can use the Hong Kong server directly, so the website will open much faster. This is a way to speed up the selection of server regions.
Hong Kong servers can be selected from Alibaba Cloud and Tencent ECS in the upper right corner of this page. Both stability and speed are very good. Lao Wei suggested choosing from them.If you don't know how to select a server, you can also add Lao Wei's contact information on the right side of the page to have in-depth communication.
You can improve the speed of website opening by caching.If you use ECS, you can enable memcached and opcache, which can speed up the website very well.
If you use a virtual host, you can't use the above two acceleration components. You can only use WordPress plug-ins such as wp super cache and wp rocket to generate caches to speed up websites in this way.
Note: It is not necessary to use this plug-in, but it is also a domestic server. Some friends use the plug-in to speed up the website, while others use it to slow down. You can test it yourself, find more friends from different places to test it, and then decide whether to use it.
1. The two cache plug-ins mentioned above include some functions of this plug-in, so you can choose one cache plug-in or the js compression plug-in. It is not recommended to use them at the same time, which is prone to compatibility problems. 2. This plug-in may conflict with other plug-ins.
The above is about caching and acceleration at the server level and website level. Now let's talk about how to speed up outside the server.
Cdn acceleration
The more effective acceleration method is to use content network acceleration, commonly known as cdn acceleration.The server is accelerated by CDN when it is placed in China, and it is easy to use any CDN acceleration in China.For example, Alibaba Cloud CDN, Tencent Cloud CDN, Qiniu Cloud, and Youpai Cloud are too many to list.
WordPress opens slowly with foreign themesAfter the above settings and twists, the website speed will be greatly improved.Remind everyone that you must back up the website and database before operation, so that you can rest assured and not be afraid of damage.
Article name: How to solve the problem of slow opening of WordPress with foreign themes Article link:https://www.vpsss.net/19606.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.