The ultimate guide to improving the speed of Web Access

Source: Internet
Author: User

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

The speed of the site's access directly affects the user's first image of the site, especially in the domestic web site, according to the survey shows that the domestic network draw speed far below the global average link speed, so if your site access speed is too slow, no matter how beautiful your site design, ranking do more than before, Will eventually lose a lot of visitors, I think the speed of the site is the most important in the operation of the site, because the speed of access to the site is not only related to the user experience of ordinary access, but also has a great impact on search engine optimization, about the Web site access speed to the benefits of the site I am not here long-winded, Because we are here to discuss how to improve the speed of Web site access.

Compressed HTML file

For large traffic sites, HTML file is the most need to compress, after the author's experiment, File size difference in 1~2KB is enough to obviously improve the load-carrying capacity of the entire site, such as Microsoft and Google's home page is also compressed, we go up to flip their HTML source code will know, There are previous HAO123, 265 and other navigation stations will also be HTML compression, where I recommend a tool (HTML Compress) for HTML compression, the software's compression step is very simple, after installation to open to compress the HTML file, and then press the F9 on the compression is completed, Remember to back up well, if you are very familiar with HTML, I suggest you manually open to compress with Notepad.

Second, reasonable use of Ajax to do delay loading

Speaking of Ajax, the author of it is Love and hate, love his place it can be very good through asynchronous mode and server-side interaction, also can realize before Ajax popular some function, hate him place, is to use Ajax loaded things, search engine can not identify, from its full name will be able to see out of it ( Asynchronous JavaScript and XML We all know that JavaScript is not a search engine can not identify, but sometimes if for the speed of consideration, it is appropriate to use AJAX to do delay loading, many sites using delayed loading, such as Taobao, where the customer prudential products, or similar to the customer prudential products of some of the website.

Third, reasonable arrangement CSS and JavaScript

Webmaster Friends Open QQ, Sohu and other portals, found that their home page is embedded in the HTML CSS directly inside, the advantage is to reduce the number of links to the HTTP request, if your site home content a lot, the amount of traffic is also very large, the author recommended this method. Also I suggest you will css file and JavaScript file compression, CSS compression software I recommend using (TopStyle), JavaScript compression can be on some online compression of the site compression, Baidu a lot of sites can be compressed. If your site uses multiple CSS/JS files, I recommend that you consider merging them into a single file to reduce the number of requests.

Four, compressed picture size

When it comes to picture compression, it is the author's favorite thing to do, the author is a typical perfectionist, every time do HTML layout typesetting, each image will be compressed, even if it is the gap of 1KB I will undermining choose which option, so often delay the project progress by the manager's blame, Here suggest that you optimize the picture with Adobe Fireworks software optimization, with firework open to optimize the picture by shortcut key F6 will appear optimization panel, if you are JPG format Picture General optimization in 80~90% about OK, compressed into 80~90% The meat doesn't look so obvious, do not underestimate the 10%~20% optimization, compressed picture size and compression before the picture size is a big gap, the author of the site of each image has been compressed processing, you can download fireworks installation, and do a test, contrast to know.

V. Use the GZIP compression component

At present, most browsers support the server side gzip compressed content, will html/css/js files such as gzip compression sent to the browser, one can reduce storage space, the second is to transfer files over the network can reduce the transmission time, about the gzip compression of the knowledge point too much, Here is not to do more explanations, I believe that everyone online to find relevant information can be done.

Six, add a slash at the end of the URL

When making a link, always remember to add (/) at the end of the URL, this will reduce the overhead of the server, because if the slash does not exist, the server needs to remap the URL or the A/m HTTP redirect, which I believe many friends have not paid much attention to, but according to the author's test can improve some performance.

Vii. Always use Favicon.ico

Opening a lot of websites now will show a small icon in front of the address bar, This icon is the legendary favicon.ico, if you do not display the Favicon.ico path in the HTML page, most browsers will read the Favicon.ico file under the root directory of the Web site, and if your root directory does not favicon.ico this file, you will return a 404 Status Code, you can use (HttpWatch Professional) to do an experiment at a glance. If you really don't want to do this little icon, you can place an empty Favicon.ico file in the root directory of your site.

Write so much today, I hope you can enthusiastically comment, if you are interested in this area, after a short period of time to write about other ways to improve speed. This article by the Shenzhen website Construction www.flagwind.com Original, the forwarding time please do not delete the original author copyright information, thanks!

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.