n a way to speed up your website

Source: Internet
Author: User
Tags contact form vps w3 total cache yoast seo

Website Access speed is the first important indicator of user experience, good website opening speed can reduce user wait, reduce bounce rate, for the conversion of the website is very advantageous. Today to share the next hunk website speed optimization of n methods, why is N, because the site speed up the method will be more and more, I will update here in time to help you solve the problem of slow web site

Original: n a way to speed up your website

1. Use a good space/server

This is the first element to ensure the speed of the website.

Space for the site is like the engine for the car, the same 1.5T, the new think field hundred meters speed can run to 7.2S, and other models 1.5T difficult to have so fast speed

The general space is divided into two types, shared space and VPS.

In the same situation, the VPS is faster than the shared space.

If you are using bluehost space and want to speed up, consider changing Linode

2. Using PHP7

PHP7 in the same conditions than the PHP5 much faster, the smoothness of the site is much higher. So if your current space/vps is not based on PHP7, then you can upgrade PHP to 7, the speed will be a certain increase.

The following is a brief introduction to Bluehost space switching PHP version of the method

1) First, be sure to back up the site, refer to Dulicator Backup site method

2) Enter Bluehost Backstage, click logo to enter cpanel, find php config, click Enter, then select PHP 7.0 (FastCGI) [Beta, check site functionality for compatibility After enabling], then save.

3) After the modification is complete, check the website immediately. If there is no problem, there should be some improvement in speed.

If you are using a VPS, you can install the PHP7 version when you configure the space, or you can upgrade from a lower version to PHP7 if it is already configured.

3. Remove Unused plugins

WP plug-in greatly expands the functionality of WordPress website, but everything has two sides, plug-in brings convenience at the same time, there will be several problems:

1) Slow Down website speed

2) possible conflicts with other plugins cause site problems

3) There may be a vulnerability, resulting in a black

So install the plug-in must be cautious. Follow a principle, can not pretend not to install (do not because the plug-ins do not have the money to load)

Take Avada Theme Website as an example, my own website plug-in no more than 10, generally is

    • Fusion Core (Avada, must be installed)
    • Fusion Builder (from AVADA5.0, must be installed)
    • Contact Form 7 Form plug-in
    • Conctact form DB Inquiry record plug-in, has been offline, can be downloaded from the Free Resources page of this site
    • Layerslider Slider Plug-in (you can also choose other slider to use the plug-in, a site only need one can)
    • WP optimize optimize the site, clean up the database and cache plug-ins, this can be cleaned up when installed, when not used to uninstall
    • Search meter Searches query plugin, can record all of your site search words and search results number, can help you enrich the content of the site
    • W3 Total Cache Cache plug-in
    • Duplicator Backup plug-in, only when the backup is installed, not when you can delete
    • SEO by yoast seo plugin, powerful, comes with robots editing features and XML sitemap features, eliminating a plugin

Of course, is not to say must only 10, just say as little as possible, the general business-to enterprise website, 10 plug-ins are enough.

So when your plugin has a list of more than 10 more than 20, quickly check and delete the non-required plugins.

I think the following common plug-ins can not be installed

    • Google Analytics directly put GA code in the background, no need to install some plugins
    • WP edit personally think WP comes with the editor function is enough, the webpage does not need to make colorful, so this plugin although powerful, but a bit redundant
    • WP Smush is a good plug-in, but there is no need to install, picture you in the local processing and upload can be, there is no need to steal this lazy and increase the burden of the site
    • Jetpack Bluehost Space One-click installation Plug-in, useless
    • Mojo Bluehost Space One-click installation Plug-in, useless
    • Other plugins, etc.

In short, the principle is that you can not pretend.

When you delete some unnecessary plugins, you will find that the speed has improved a lot.

4. Correct placement of images on the website

The picture is a few k, dozens of K, more than hundreds of k, if too many pictures will slow down the speed of the site.

Picture optimization processing consists of two steps

1) Use the correct size picture

For example, you want to Avada on the home page with 1/3+image frame and put three pictures, the width of each picture is 337PX, if you put the picture is every 500PX, then wasted size, because it can only display 337PX
For example, the product page made with portfolio, if added sidebar words, the content of the body part is only about 750px width, if you put a 1000PX picture, it is wasted

So be sure to upload pictures according to the size you actually need, not "overqualified"

2) Compress picture

After determining the correct size, before uploading, drag all over to the tinypng.com to compress once. In general, you can reduce the size of 30%-70%, so that image compression is important to improve website speed.

However, only need to compress once on the line, the second compression effect is not so good, and there is no meaning, compression will inevitably reduce the quality, one compression is to find a balance between the image size and quality.

Compression effect Reference

5. Website plus HTTPS encryption link

HTTPS is a trend, whether from SEO or from a security perspective. In fact, on the other side, HTTPS also has a certain increase in speed. Because HTTPS uses parallel download, the equivalent of road widening, the unit time through the car naturally more.

However, HTTPS on the Bluehost shared space does not accelerate because it is a shared server and is not supported.

6. Website Plus cache

1. Install the cache plug-in, such as W3TC, improve the speed, directly in the w3tc-general import configuration file can be, do not need to set up, configuration files in the free resources download. Cache plug-in only one on the line, loaded too much, will conflict, causing the site problems.

2. The theme comes with the caching function. such as Avada from 5.10 added cache and merge request function, speed increased a lot. Theme Options-advanced-dynamic CSS & JS Inside the settings can be, such as

7. Use the faster WP theme

Before the Avada, hunk himself experienced a lot of topics, such as The7,goodspace,flato, and so on, all feel the speed of general, especially The7, quite card (do not know the improvement does not now).

A quick theme can use the smallest code to achieve the most functions, Avada theme is a representative, of course, Avada is not the fastest, but it is very good in comprehensive performance, otherwise it will not become the ThemeForest the highest sales WP theme.

In addition, for a certain basis and interest in the code of Friends, you can try to write the theme, and streamline the code, such a topic is the fastest. For example, hunk's blog theme, is adapted from the official 2015 theme, quite smooth.

8. Exclude 404 of Resource Links

What is a 404 resource link?

Generally refers to lost pictures or documents, etc. Like pictures, may accidentally deleted, but the page above the link is still in, so call, open the Web page, has been continuously download this resource, the site has been working, the burden is heavy. If there are many 404 linked resources, the speed of the site will be significantly slower.

9. Site does not use remote resources

What do you mean offsite resources? For example, your site is a, the image above is a B site pictures, which will slow down.

The best way to do this is to upload all the resources (Pictures, PDF documents, etc.) to your own website and then call.

Another situation is that many foreign trade sites with the domestic statistical tools, such as CNZZ, Baidu Statistics, 51LA and so on. Not that these statistical tools are not good, but because these statistical tools, such as JS code resources are in the country, customers open your site, it will slow down.

Therefore, to try to avoid the occurrence of this situation, foreign trade website on the installation of GG webmaster and GA analysis is better.

Cond..

n a way to speed up your website

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.