Targeted to speed up the site

Source: Internet
Author: User

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

For a webmaster, the speed of the site is even more important than the content. Even if the content of the site is very good, but the speed is very slow, I believe not many people will patiently wait. But the site is slow, there are many reasons, to know where the speed is slow to solve the problem. Manual on the site to speed, low efficiency does not say, but also inaccurate. Here recommend a loadimpact website, here can quickly test the site load speed, appropriate for the site to lose weight.

1, the use of tools to test the speed of the website

First Login to loadimpact website (url: http://loadimpact.com), in the text box to test the Web site cashzx.com, and then click the Start Test button began to test the speed of the site. Wait a while, you can count out the loading site of some detailed loading data. Including the overall loading and standing pictures as well as JavaScript, CSS and other code load.

You can select different files on the right-hand list to compare the loading data of up to three objects at the same time. And in the Loadimpact Web site can also generate a chart display, to facilitate our analysis. By generating the data, you will know where the bottleneck of your Web site speed, so as to further solve the problem.

2, small improvement to make the Web page display faster

After we find the reason why the Web page is slow, we can make some specific changes. Below, we give some common improvement methods to help people improve the speed of the website faster.

Using gzip compression Document: Gzip encoding is a way to improve the performance of Web pages, not only reduce storage space, but also reduce the time required for transmission. Using gzip compression for files in your Web site can significantly increase the speed of your Web page loading and reduce your bandwidth consumption.

Place the style sheet file on an external call: Place JavaScript and CSS style sheet files that need to be used on the page in a different folder so that the calls are cached when you open other pages of the site, speeding up the load on the site pages.

Avoid using page redirection: Whether through the server sanctity orientation or through JavaScript code for content redirection, the site will first load a blank page, and then directed to another page, which not only prolongs the load time of the page, but also very likely to lead to not jump, so that users face a " Blank page.

Clear repeat redundant script: browser loading the same Web script will increase the load time of the page, but many programs will have this simple error occurred. Take a look at the site for jquery or other scripts that have been invoked two or three times.

Reduce domain name DNS lookup time: When a user types a domain name in the browser's address bar, the browser locates the IP address of the domain name through the DNS system, while the DNS time is set at a lower level, such as a DNS query for the average 60~100 millisecond.

Weight loss for JavaScript files: This method differs from the gzip compression feature, and there are many ways to shrink JavaScript documents, such as removing unnecessary spaces. Reducing script files can significantly improve the speed of Web page access.

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.