| Web site is driven by the development of Internet technology. People’s food, clothing, shelter, and transportation are dependent on the Web platform in nowadays. So the promotion of performance of Web sites becomes more and more important. In addition to get information from the Web site or carry out a transaction, we hope to have more rapid and convenient services and experience. Users are not able to endure the long time waiting for the browser response, and long response time will lead to the loss of customers. Therefore, the performance optimization of the Web site is of great importance. Back-end optimization technologies of database, code-behind and hardware update have been studied by so many scholars before, and there is so much achievement of optimization methods. But for optimization of Web front-end performance, the research is still far from enough. This thesis focuses on Web front-end optimization. The performance improvement of the Web site is realized by Web front-end optimization, without changing the database and background code.This thesis describes the background and current research topics of Web front-end optimization at first. The development of Web technology and the content of the Web front-end development technology involved are analyzed. HTTP protocol and Web request-response mechanism is analyzed to get the principle of Web front-end optimization. A performance optimization method for Web front-end is presented in terms of page elements, CSS Sprites technology, Web Cache and compression technology. Page elements, HTML, CSS, Java Script and picture, optimization are studied in detail; CSS Sprites technology is analyzed and its using rules is proposed; Web caching optimization based on CDN technology and Cookie optimization is studied in detail; An optimization method based on Gzip compression technology is also investigated. In addition,solution of compression problems caused by some Web proxies and PC security software is proposed.Finally, experiment by a real Web site using the method presented by this article is conducted. Through the analysis of experimental results, the optimization method is proved to be reliable. We get the conclusion that the optimization method is feasible. |