WordPress knowledge sharing

How to solve the problem of slow opening of WordPress with foreign themes?

People often ask: WordPress website opens slowly with foreign themes How 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.

 How to solve the problem of slow opening of foreign themes in Wordpress website installation

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.

Selected explosives area
618 Zhongshenghui Click to view the purchase
Selected preferential activities Click to view the purchase
Tencent Cloud Preferential Products Zone Click to view the purchase
Cross border e-commerce store server Lightweight application server
Tencent Cloud Animal Palu Game Server Click to view the purchase
For more Tencent Cloud content, please see Tencent Cloud

Cache acceleration

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.

Related tutorials: Pagoda panel installation memcached and detailed configuration method
Mistaken Ideas and Correct Methods of Installing Memcached on Pagoda Panels
One click expansion installation of pagoda panel Opcache

The pagoda panel has developed a server level dynamic acceleration technology, and the acceleration effect is good. See Tower website acceleration - Tower panel website acceleration installation setup tutorial

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.

Related articles: WP Super Cache Cache Plug in Optimization Settings
WP Rocket Plug in Installation Deployment Settings
The difference between the WP Rocket plug-in and the WP Super Cache plug-in/which is better to use

Plug in optimization

Wordpress calls Google Fonts by default, which may cause slow website opening on domestic servers. The solution is to use WordPress plug-ins. course: The problem that WordPress in China is slow to open Google font/Graftar avatar links

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.

Wordpress contains too many files such as js and css, which causes the internal and external files to be loaded constantly when the page is opened, so the website will open slowly. At this time, the plug-ins for compressing js and css will come into use. For example, this model Autooptimize a wordpress easy to use html css js compression plug-in can be compressed to optimize web pages and accelerate websites After use, these files can be compressed and summarized to speed up.

be careful:

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.

Related content: AliCloud CDN configuration process

Tutorial for DNSPOD and Tencent Cloud CDN to speed up website access

If the server is abroad, it is recommended to use cloudflare for acceleration. It can be used for free.

Related content: Cloudflare Foreign Free CDN Accelerated Registration Tutorial

WordPress opens slowly with foreign themes After 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.

Like( zero )
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.