Ways to improve web browsing speed

  

Computer Shop News

Website speed, the author summarizes some practical methods. When making the homepage, the following methods can greatly improve the speed of your webpage. I remember to help the page to lose weight We browse the web page is actually to download the web content of the virtual host to the local hard disk, and then use the browser to explain and view. The speed of downloading a web page accounts for a large proportion of the display speed, so the smaller the space occupied by the web page itself, the faster the browsing speed will be. This requires that all the principles of simplicity should be followed when doing web pages, such as: Do not use too large Flash animations, images and other resources. A clean, concise page will give you a clear-cut feeling. Second, if not necessary, try to use static HTML pages. As we all know, ASP, PHP, JSP and other programs to achieve dynamic interaction of web information, it is very convenient to run, because their data is very interactive, can be easily accessed, changed The content of the database, so that the website "moving", such as: forums, message boards, and so on. However, such a program must be processed by the server to generate an HTML page, and then "send" to the client to browse, which has to consume a certain amount of server resources. If you use this type of program too much on a virtual host, the page display speed will definitely be slow, so it is not necessary, please try to use static HTML pages. Third, avoid the entire page content into a Table This is a web design problem, many webmasters in order to pursue the page alignment, the entire page content is stuffed into a Table (table), and then by the cell Td to divide the layout of each "block"; the display speed of such a website is absolutely slow. Because Table waits for all the content to be displayed after it is loaded, if some content cannot be accessed, it will delay the access speed of the entire page. The correct approach is to split the content into several tables with the same pattern, not all of them into a Table. 4. Change the access of ASP, ASPX, PHP, etc. files to .js references. This should be noted in ASP, ASPX, PHP and other programming. If you want to embed dynamic data in a static HTML page, and the dynamic data is provided by ASP, PHP, etc., the following statement will be used. Quote: In this case, every time someone visits your website, the server will execute and process a tongji.asp file, extract the corresponding data from the database, and output it to the web page. If there are tens of thousands of people visiting at the same time, After tens of thousands of executions, the consequences can be imagined. It is recommended to dynamically generate data into a 1.js file in these programs, and then pass the code like

Copyright © Windows knowledge All Rights Reserved