Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
A good website, page opening is a very important indicator. such as Baidu, Taobao, Tencent, such as the opening speed of the large stations are super fast (Google, because of human factors exception). What they have done optimization, as a grassroots webmaster not so many of the human resources have what good method? Don't worry, let me analyze it.
Number of 1.HTTP connections
The HTTP protocol has research friends must know that HTTP is a short connection based on the socket, the so-called short connection is a request once connection, n picture is n a request connection, each request after HTTP will be disconnected. The more you connect, the more things you can handle. How do you know how many connections your Web page has?
The image above is through the Firefox firebug intercept website "jiaxing SEO" (that is, my blog) load time map. There is a list of request connections in the list. If the number of page connections to reduce the number of connections? Take Taobao as an example! or look at the picture.
After reading everyone should understand that, Taobao will be the N picture merged in a picture, originally dozens of connection now as long as 1 pictures! How many connections are there? As for these pictures how to cut suggest you learn CSS sprites online there are many tutorials.
The best way to reduce the number of connections to HTTP is to merge, such as the first page style can also be written directly in the HTML (try not to nest in the label).
2.CDN acceleration
What is CDN acceleration, suggest you see Baidu Encyclopedia (http://baike.baidu.com/view/1743190.htm) above have detailed introduction. Everyone read the principle also understand why speed up the Web page display speed.
3. Optimize the Web page structure
A. Duplicate CSS and JS with a separate file, because the browser caching, multiple pages do not need to repeat to the server to download.
B. Place JS at the end of the page. This should be well understood, so that the DOM has to be loaded first.
4. Compressed Files
It is known that the file can be packaged into a compressed file by WinRAR to reduce the volume. The same applies to Web pages. Like jquery there is a min version of the compression function as a lot smaller. Similar to the image compression and so on.
5. Other methods
In addition to the above most important points there are many ways to speed up the speed of the Web site, such as the server enabled to enable gzip compression, the file header specified expires, avoid redirection and so on.
All right, this article is here, thank you for watching! Author: Xiaobei original address: http://x20.cn/seo/258.html reprint Please specify