How to improve the browsing speed of the website

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Customers often encounter their own web site browsing slow situation, there are many reasons for this situation, such as the local network and the United States host poor connectivity, a host of customers too much, the customer's program is very expensive CPU resources and so on. And these are all relatively random, customers can not control themselves.

So now I'm going to introduce several ways to optimize my own web site to make sure that when the host is working, it's most likely to increase the browsing speed of the site:

1. Enable gzip compression

A lot of ready-made, mature website program all provide gzip compression function, this function can compress file on line 1/4, compare browsing speed will increase to the original 4 times times, the flow that use will reduce 1/4.

Enable gzip in Discuz, login admin, select basic Settings-> Server Optimization Find page Gzip compression, select "Yes" and then submit

Enable gzip in Phpwind, login admin backstage, click Core-> Security and optimize-> speed Optimization tab, find gzip compression level, 0 to turn off gzip compression, 9 for maximum compression ratio.

WordPress turned off the GZip feature after 2.5. You can use the methods that are appropriate for your own in the following ways:

If the server supports. htaccess files, add the following code to the. htaccess in the WordPress root directory, if not. Htaccess adds the code after the new one. After the completion of the upload to the WordPress root directory.

Php_value Output_handler Ob_gzhandler

Enable gzip by php.ini, add the following code to turn on gzip.

Output_buffering = Off
Output_handler =
Zlib.output_compression = On
Zlib.output_compression_level = 6

Zlib.output_compression_level = < Any value of 1-9, the lowest compression ratio of 1,

Note that this enables gzip after you need to remove the original gzip functionality of the program, such as Discuz, such as gzip do not enable, or the program will be an error.

There's something else. The virtual host must be enabled for gzip support. Our blog is built on the US virtual host provider Webhost4life, Gzip enabled by default.

Here to provide you with a test host whether to open the Gzip detection page:

http://www.gidnetwork.com/tools/gzip-test.php

Our test page is webhost4life.asia/blog/compress_test.php

  

Turn on the gzip test

2. Picture, audio-visual class file size

Under certain conditions, the larger the page, the slower the opening, so be sure to optimize the size of the picture, especially the home page, it is best not to enlarge the picture. Many pictures can use some optimization program lossless compression, the picture quality influence is not big, the size reduces many. In fact, in many cases. Due to browser resolution limitations, the loss of some of the quality of the picture is not very different. The original saw some customers of the shop, he took the digital camera after the merchandise photos directly put up, a few m, open not slow to blame. Actually in the browser, a split ratio of thousands of x thousands of and a 800x600 product picture is not very different, but the size of a lot of difference, the latter may be only thousands of K or even dozens of K.

Optimized images can be used with PS, or software that specializes in lossless GIF compression.

3. Template plugin Problems

Because many programs are now open source, program enthusiasts have developed a lot of rich plug-ins. But because of personal technical factors, some templates, plug-ins optimization is not good, and sometimes very consuming server resources, so that slow down the speed of the site. Especially for the forum's entertainment plug-ins, must be used with caution.

If you have other ways to improve your browsing speed, you are welcome to communicate with us.

Related Article

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.