You greatly increase the speed of the page
Many of my friends have to do with a virtual host site, the page file will be stored in the virtual space, but the content of more than one page, the site opened it was particularly slow speed, if you encounter such a situation, instead of looking for better space, better website by optimizing the code to achieve a satisfactory speed. The author summarizes a number of practical ways to create home page, the following methods you can greatly enhance the speed of the page.
First, remember to help lose weight page
Our website is the virtual host of web content downloaded to the local hard disk, and then explain the view of the browser. The processing speed of the download page to show the speed up a large proportion, so the page itself, the smaller the amount of space, then the browser will be the faster speed. This requires that the page was doing all the time to follow simple principles, such as: Do not use too much flash animation, photographs, and other test basis ⒓ 8 arc cut tadpole capsule cheap prostitute while Hui Gou Mountain vessels Sunburn is afraid to visit the mother skeleton core health? BR>
Second, if not necessary, to make full use of static HTML pages
As we all know, ASP, PHP, jsp and other procedures to achieve a dynamic interactive web pages of information, up and running is very convenient, because they are interactive data, and can be easily access, change the content of the database, the website "Dynamic", and such as: forums, message boards and so on. However, such procedures must be processed by the server implementation to generate HTML pages, and then "send" to the client browser, which had to spend a certain server resources. If the virtual host in the over-use of such procedures, the page display speed will definitely slow, there is no need, to make use of static HTML pages.
Third, not to the entire page of content into a Table
This is the problem of web page design, and a lot of pages in order to pursue a unified head alignment, the entire page content into a Table (table), and then again by the td cell to divide the various "pieces" of the layout, this show that the speed of the site is slow. Table to wait because of all the contents of which are loaded after the show, and if unable to access certain content, it will delay the visit to the speed of the entire page. The correct way is: will the contents of partition have the same pattern of several of the Table, and not all years into a Table.
Four, ASP, ASPX, php and other files changed. js quote
This is ASP, ASPX, PHP programming, etc. It should be noted that when, if you want to static HTML pages embedded in dynamic data, dynamic data, which is ASP, PHP and other procedures to provide, use the following statement Quote: <script src = "http://image.ccidnet.com/ad_files/network_index.asp?orders=1"> </ script>
In that case, every time a person visits your website, server and processing to be performed once network_index.asp documents taken from the database and corresponding data, and then output to the page, if there are tens of thousands of individuals at the same time visit, it is necessary to the implementation of tens of thousands of times, the consequences can be imagined. Suggested that these procedures will be dynamically generated data to a file to network_index.js, and then on the home page through
<script src=" http://www.179job.com/ad_files/home_daohang/network_index.js"> </ script>
Such a code to reference the document network_index.js. In this way, the task data to the client browser do not consume server resources, and quickly showed a natural speed; the time spent by the former is almost the latter several times!
Fifth, the use of nested iframe to another page
If you want to insert some Web site advertising code, do not want to affect the speed of these ads site, then the most suitable for the use of the iframe. Is: will these ads code on a separate page, and then on the home page using the following code can be embedded in the page so that page will not be delayed because of advertising and drag the entire home page shows that the code is as follows:
<Iframe frameborder = 0
leftmargin = 0
marginheight = 0
marginwidth = 0
scrolling = no src = "http://www.179job.com/pub/123.html"
topmargin = 0 width = 700 height = 440>
Which http://www.179job.com/pub/123.html is the path to the file reference.
.Net Windows development Articles
- Record some information about testing tools NUNIT link to information, interested friends can jump in the past to see if
- Given natural number four 1-9, calculate the number of 4 obtained after 24 +,-,*,/ computing algorithm
- Writing and. NET Properties window to interact RAD components (preface)
- Certificates and signatures - try Microsoft certification testing tools provided by the series of
- Solution "does not allow the type System.DelegateSerializationHolder and derived from the type (for example, System.DelegateSerializationHolder) at this security level by the anti -
- Traversal ArrayList pitfalls
- Traversal ArrayList pitfalls
- Using a Custom Action to Create a Database During Installation
- ActiveX control is packaged release [No certificate of release] (1)
- Visual SourceSafe 6.0 Consideration of the problem
- RTF expression in the image and expression of the code where the reciprocal
- WEB application using VS.NET2003 making the installation package
- Your application for registration together with the restrictions
- WEB using VS.NET2003 production application installation package (collection)
- [dotNET] how to read the configuration file ConfigurationSettings.AppSettings.GetValues more than the value with the Key
- My collection -. NET development Web site commonly used [Finishing] [top! ]
- Smart Client Case Study Source Code Download from MSDN China
- The use of unlimited-class extension of TreeView nodes (original)
- You greatly increase the speed of the page
- insert r in richtextbox Animation / control
Can't Find What You're Looking For?
Rating: Not yet rated