How to improve the performance of the game website from the site program

Source: Internet
Author: User

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

The user experience to us makes the Internet product and the service significance to be self-evident, but the website stability and the response speed is to the user experience feeling influence very big thing. Especially in our game industry, players are very impatient temperament, you can often from the player because of the mistakes of the teammates can be seen out of foul language. I have shared with you before the grassroots Webmaster Operations Introduction Information station experience, and I want to share today is from my company's game official website, the main thing is to speak from the site program to optimize the performance of the site.

To improve the performance of the site, I believe that is a long time there are a lot of people concerned about the topic, because in this respect, whether it is the user experience or reduce their own production costs have great benefits. In fact, there are a variety of online optimization performance information, which is more about the server. such as the use of high bandwidth, high-configuration machine to serve as a Web site server, of course this who does not know, if you want me to take an entry-level VPS and a high bandwidth independent server than performance, how can I optimize is useless, then I share here is meaningless. Therefore, we usually say that the optimization of performance or optimization of other things, is to refer to the original on the basis of Ascension.

Today I don't share with you how to optimize the server and its associated software facilities, I want to share with you the several ways I know how to optimize the performance of the website from the website program, I hope to help you, of course, the following is not all I know, but I think the most commonly used several, Of course in this area if we have a better way and hope that we can share.

First, page compression. This is a revelation many sites are in use, we listen to the most is gzip, in addition to our official website of this game sometimes users visit more times, will also open mencache, such as cache hope, thereby enhancing performance, of course, this is the server and program configuration with each other configuration, But it is also part of the Web site program optimization.

Second, cut the map processing. As we all know, these games websites, especially the official websites, need to be designed very beautifully, so as to be able to match the noun of the game. So the need for a lot of picture elements to decorate, and these pictures are often very many, but each size is relatively small, so that the overall site page volume will be very large, and each open the number of HTTP requests will be much more. For example, after we've processed the CSS graphics technology, the Web page almost all the icons merged in a picture, the original small picture added to the file to nearly 10M, and merged into a map of less than 1M volume, loading pictures of the number of HTTP requests reduced by hundreds of, so the response speed increased a lot, But also save a lot of bandwidth costs.

Third, the split-screen loading. When we play the official information section of the game, often use the form of a list as a list, and the size of the picture is also relatively large, such a list of pages often need to have dozens of articles, but such a page volume often reached several megabytes or even more, if you want to load the user at once, it may waste too many users wait time, Maybe the user will have no patience to wait. and jquery and Ajax and other technologies can solve such problems, that is, the split-screen loading, such as the use of jquery plug-ins lazyload can achieve the picture of the screen loading, and this kind of technology I put into the production of the use of the example, the effect is very good. First, let the user quickly open the page, and need to look down when the picture continues to load; second, to see this page no longer look at, you can save a lot of bandwidth resources.

Four, block loading. People with development experience know that if a page as a whole, then if there is a small area of communication failure will cause the entire page load delay, or even open. At this time we use the block loading technology is very good choice, that is, to divide a page into a number of independent modules, and these modules in the communication between each other, so that even if a module problem, the other modules can be quickly normal display of the page. Typical of this is the Rose Portal framework used by Renren.

Five, Merge JS and CSS. This is too common, such as Baidu Webmaster tools provided by the page detection module will prompt the webmaster to do this, and many articles on the Internet have mentioned this aspect of content, here I will not say more.

First of all, said the above, will continue to add to the content of this aspect, of course, there will be more things, such as optimizing the SQL query statements, so as to reduce the number of concurrent and connection number and so on. In fact, there is no other meaning to share such content, that is, I think maybe you can bring some enlightenment, of course, I hope you can share something similar for our reference study!

This article source: http://www.ka77.com/html/9680.html (by card 77 game Net original, reprint please specify the source!)

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.