How to improve the response speed of the page (1)
Author: sandra
Slow access to the Internet has become the past, but the page will show instant only in the future. Here are some skills which can make the visit to your site more smoothly.
The delay of the first visit to the page is a very important issue of web design and Web application design. Users always feel page reaction not fast enough.
Why do the users have a feeling? In real life, no matter how you try to simplify your page, the delay still exists. To make the page more colorful, we often use the flash, but the abuse of flash will seriously affect the response speed of the page. As a network application, it must ensure that the loading order of page elements will not be caused abnormity because the page is not fully loaded element.
What factors make website slow response? When it comes to improving website response time, the most common way is as much as possible to reduce the size of Web documents (This also led to endless discussion of JavaScript library file size, but ultimately no result). In fact, there are many factors that affect access to the response speed of the initial page:
HTML document size
The size of embedded in the page script, images, multimedia elements document
HTML page complexity (The browser can quickly display a simple page)
The user's access speed
The speed of access to the server of the third-party content which can be visited by the page
Domain and the external domain DNS resolution speed contained by the page
The performance of the user's computer (Browser will become unresponsive because the system consumes too many resources to other tasks)
The corresponding rate of the server.
Apart from the technical factors that will lead to slow site response, there are a number of human factors on web design aspect. For example: In order to avoid page regional disorder and no image display in page loading process the page is designed to be fully loaded before the page contents displayed together.
Method for site's fast response speed
The following experience would be helpful in solving site's slow respond problem caused by technical and human factors.
Under the premise of not affecting the page display quality, optimize HTML code as far as possible. (This includes removing the notes in the HTML document and redundant newline tag when releasing pages.)
page contains the fewest possible of external reference to reduce dependence between documents.(Multiple scripts can be placed in a script file. use CSS-sprite technique to merge multiple small images into one big map, so just loaded only one time.)
Make sure you do not quote the content of third party from an external server: using a script to cache the remote RSS feed locally. This will not only avoid the delay caused by DNS resolution, but also the external server downtime affecting your service.
Possible set down the size of image and contained pictures element. This avoids the page elements jumpiness phenomenon resulted of image gradually loading when page displayed.
Load big script in the end of the page, so the page can displayed before the completion of loading large script.
The delay of the first visit to the page is a very important issue of web design and Web application design. Users always feel page reaction not fast enough.
Why do the users have a feeling? In real life, no matter how you try to simplify your page, the delay still exists. To make the page more colorful, we often use the flash, but the abuse of flash will seriously affect the response speed of the page. As a network application, it must ensure that the loading order of page elements will not be caused abnormity because the page is not fully loaded element.
What factors make website slow response? When it comes to improving website response time, the most common way is as much as possible to reduce the size of Web documents (This also led to endless discussion of JavaScript library file size, but ultimately no result). In fact, there are many factors that affect access to the response speed of the initial page:
HTML document size
The size of embedded in the page script, images, multimedia elements document
HTML page complexity (The browser can quickly display a simple page)
The user's access speed
The speed of access to the server of the third-party content which can be visited by the page
Domain and the external domain DNS resolution speed contained by the page
The performance of the user's computer (Browser will become unresponsive because the system consumes too many resources to other tasks)
The corresponding rate of the server.
Apart from the technical factors that will lead to slow site response, there are a number of human factors on web design aspect. For example: In order to avoid page regional disorder and no image display in page loading process the page is designed to be fully loaded before the page contents displayed together.
Method for site's fast response speed
The following experience would be helpful in solving site's slow respond problem caused by technical and human factors.
Under the premise of not affecting the page display quality, optimize HTML code as far as possible. (This includes removing the notes in the HTML document and redundant newline tag when releasing pages.)
page contains the fewest possible of external reference to reduce dependence between documents.(Multiple scripts can be placed in a script file. use CSS-sprite technique to merge multiple small images into one big map, so just loaded only one time.)
Make sure you do not quote the content of third party from an external server: using a script to cache the remote RSS feed locally. This will not only avoid the delay caused by DNS resolution, but also the external server downtime affecting your service.
Possible set down the size of image and contained pictures element. This avoids the page elements jumpiness phenomenon resulted of image gradually loading when page displayed.
Load big script in the end of the page, so the page can displayed before the completion of loading large script.
Article Source: http://www.a1articles.com/article_1511879_81.html