Introduce some methods to optimize your ASP program to improve the access speed of your website and don't let others wait too long.
1. Use less session variables
Using session variables will reduce the productivity of the website, and each new visitor will create a session variable until the memory of the session variable is not released 20 minutes after the user leaves the website. If possible, you can adjust the session end time to release occupied memory in time (session.timeout=10'10 is 10 minutes) or close the session (enablesessionstate=false).
2. Do not cache ASP pages
Because ASP pages are cached and the page is not output until all pages are submitted, for large HTML pages, the viewer will wait for a long time, so do not use response.buffer to cache your ASP page.
3. Do not use frames
Frameworks will increase the number of requests the browser to the server, making the server burden heavier, which is why most websites now do not use frames. You can use ASP's include statement (#include) or use <scriptsrc=frame.js></script> to include the navigation area in all pages of the website, which also has the function of a framework.
4. Don't use pictures randomly
Images are indispensable for websites and can beautify your pages. However, images have a great impact on the download speed of web pages. You should use less pictures. The pictures you use should be processed with some image compression tools. Generally, the processed pictures are much smaller than before, so it will speed up the display speed of the page.
5. Don't use too large forms on the web page
If you put a large table in your web page, and then put a small table, pictures and text in this large table, it will be the same as the cached ASP page I mentioned earlier. The page will not be displayed until all pages are downloaded. Because the browser will not display this table after the table is obtained, it is recommended that you do not use large tables. You can divide the large table into multiple small tables.