Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
Here are some of the key factors to be noted in optimization:
1 reduce the number of HTTP connections generated by one page access. One, as simple as possible page design, minimize the use of pictures, by giving up some unnecessary page effects to reduce the use of JavaScript; second, the use of some optimization techniques, such as the use of background images to reduce the number of pictures, image map technology; Iii. use of inline Images a CSS picture to a Web page. Try to merge JS and CSS files to reduce the number of independent files.
2 CSS at the top of the page, JS file at the bottom of the page. CSS reference to the header in the HTML header, JS file references as far as possible in the bottom of the page tag behind, the main idea is to let the core of the page content as soon as possible. However, note that some of the use of JS pages, there may be some JS files at the bottom will cause some unpredictable problems, according to the actual situation appropriate use can be.
3 to minimize the content of JS files. Specifically, the use of some JavaScript compression tools to the JS script compression, remove the white space characters, comments, minimize variable names. On the basis of using gzip compression, the compression of JS content can improve the performance by 5%.
4 Minimize the use of external scripts and reduce DNS query time. Do not reference too many external scripts in the Web page. First, a DNS parsing process consumes 20-120 milliseconds, and secondly, if too many external files (such as various ads, alliances, etc.) are referenced in the page, you may drag your site slowly because of the speed of the external file response. If you have to, then try to put these scripts in the footer, but the browser can only be processed in parallel to the same domain name two requests, and for different child domain name is not subject to this limitation, so that the site static content (CSS,JS) under other sub domain name (such as flash.in83.com) will help improve the ability of browsers to download Web content in parallel.
This article is provided by www.in83.com Author: Roy.chen.