Optimize Your ASP program

Source: Internet
Author: User
Tags html page include
Programs | Optimization If you are an ASP enthusiast, you must have thought about how efficient the implementation of ASP? We all know ASP efficiency and CGI ratio, in less traffic time, they are the same, and sometimes may be better CGI (I think this is related to the operating efficiency of the NT system), but in a large number of visits, the ASP is much better than CGI! However, have you ever thought that the ASP program you wrote can be optimized?
Let me introduce some ways to optimize your ASP program.
One, less use session variables
Using session variables reduces the productivity of your Web site, and each new visitor creates a session variable until the memory of the session variable is released 20 minutes after the user leaves the site. If you can, you can adjust the session end time and release the occupied memory (SESSION.TIMEOUT=10′10 is 10 minutes) or shut down the session (Enablesessionstate=false).
Second, do not cache ASP pages
Because caching ASP pages, until all pages are submitted before output page, for large HTML page, will allow viewers to wait for a long time, so do not use Response.Buffer cache your ASP page.
Third, do not use the framework
The framework increases the number of requests the browser makes to the server, making the server more burdensome, which is why most Web sites now do not have frames. You can use the ASP's include statement (#include) or use <script src=frame.js></script> to include the navigation area in all pages of the site, which has the same functionality as the framework.
Four, do not use pictures
The picture is the website must be few, it can beautify your page, but the picture for the download speed of the Web page is very large, you should use less pictures, use the picture to use some picture compression tool processing, generally processed pictures are much smaller than the original, so will speed up the display speed of the page.
Do not use too large a table in the Web page
If you have a big table in your Web page, then in this large table to put a small table and pictures, text, so as I said before the cache ASP page, until all pages are downloaded before the page display, because the browser to get the form of the </table> before the table is displayed, So it is recommended that you do not use large tables, you can divide large tables into smaller forms.



Related Article

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.