Website access speed is an important factor affecting website visitor traffic. Failure to open the website within a few seconds will lead to the loss of many visitors. Therefore, website speed optimization is particularly important in the WordPress program.
Of course, the server region and configuration will also affect the access speed
Server speed: domestic > Hong Kong or foreign servers
The configuration is as good as you have money, and if you don’t have money, 2 cores, 1g, 2 cores and 2g are enough.
1. CDN optimization
This is the easiest way. People from different regions will use the operator closest to the user when they visit your website, so it will speed up the user's access speed
It can speed up static resources such as pictures or some js files css files and so on.
If you use a CDN, you will find that the speed of the website is soaring.
After the image is converted to webp, the size will be much smaller, and the image quality will not be greatly affected. [Recommended]
2. Cache plugin
Wordpress has a powerful plug-in function, and users can choose useful plug-ins to install and use.
When it comes to caching plugins, I think the best one to use right now is WP Rocket
This plugin optimizes your files
Or the optimization of image media
Share the download address of this plugin with everyone Share a few useful WP plugins to make your website awesome-Suyin Resource Network-Provide free resource sharing-free resource download
After using this plugin to open the cache, it definitely feels like flying.
3. Reduce the use of unnecessary plug-ins
Many friends like to use a lot of plug-ins, such as membership plug-ins, seo plug-ins, analysis plug-ins, security plug-ins, etc. If these plug-ins are used too much, the speed of the website will be slowed down
If you don't believe me, disable all the plug-ins you are using now, let's take a look again?
So the plug-in is the most useful and the most practical. Unnecessary plug-ins can be deleted.
4. Streamlined themes
The theme is the core fulcrum of WordPress, and the degree of optimization of the theme is also related to the visit of the website. Currently, I am using a theme called Corepress pro
This streamlined theme is suitable for geek users or bloggers, and its functions can be basically satisfied. This streamlined theme looks lean and does not have so many complicated functions and interfaces, giving users a more refreshing experience.
Of course, justnews, which has a similar theme to this one, is also very good.
5. Pagoda Optimization
This can be combined with the wpjam plugin which has a cache
Here you can also adjust the performance settings according to the memory size
gzip compression
GZIP encoding on the HTTP protocol is a technique used to improve the performance of WEB applications. High-traffic WEB sites often use GZIP compression technology to allow users to experience faster speeds. This generally refers to a function installed in the WWW server. When someone visits a website in this server, this function in the server will compress the content of the web page and transmit it to the visiting computer browser to display it. Generally, plain text content It can be compressed to 40% of the original size. In this way, the transmission is fast, and the effect is that it will be displayed quickly after you click the URL. Of course, this will also increase the load on the server. Generally, this function module is installed in the server. Both web server and client (browser) must support gzip. Currently mainstream browsers, such as Chrome, firefox, and IE, all support this protocol.
Pagoda opens nginx, performance adjustment--adjust the compression rate to 2-6, too high will occupy the cpu
If you don't understand other things, don't mess around. I read many tutorials on the Internet before, and the server that I messed up directly couldn't bear the pressure and the pagoda was fully loaded. Simply reinstall the system directly later. .
So if we don't understand, let's not mess around.