quote:
This sounds good. Is this buffering setting on the server or Frontpage? I am hosted, so i couldn't change the server.
For .ASP pages only.
You can make the changes to individual pages. If you wanted to try Response.Buffer=False to see how it works on your page just type it in immediately after option explicit at the top of your page. You are using option explicit, right?
code:
<% Option Explicit %>
<% Response.Buffer=False %>
The buffer is turned on by default in IIS5.
You would use Response.Flush at points in your page where the code is finished (like the end of a table or script). Place on the line below the chuck on your page you wish to send. NOTE: the buffer has to be turned on in order to use Response.Flush or you will get an error.
There are some other things you can do to improve the speed of an ASP page. If you are sure that you will not use any session or application variables to maintain a users state, then use Enablesessionstate=False. You should avoid using the session variables as much as possible.
Use Response.Buffer=True if you are not on IIS5. Although, in your case this may be an exception.
Use option explicit to declare your variables before use. This also speeds up your page. You then MUST dim all your variables.
So, at the top of your .ASP page you could put:
code:
<@ Enablesessionstate=False %>
<% Option Explicit %>
<% Response.Buffer=True %>
and use response.flush where you need it.
Your homepage is long and there is a lot of white space in it. You could MAKE A COPY, and then "fold" your page up. For example, this comes from your source code, I have folded it up:
code:
<body bgcolor="#FFFFFF"><!--msnavigation--><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><!--msnavigation--><td valign="top">
<div align="center"><center><table border="0" cellpadding="0" width="100%" cellspacing="0"><tr><td width="30%" colspan="3" height="0">
<table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td width="30%" height="0"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td width="33%" rowspan="3"><p align="left"><img border="0" src="images/logo1.gif" width="233" height="95"></p>
</td><td width="67%" height="22" colspan="2"><p align="right"><font face="Arial" size="2"><b>Wednesday, May 09, 2001</b></font></td></tr>
</center><tr><td width="67%" height="26" colspan="2" valign="top"><p align="right"><img border="0" src="images/updated.gif"></td></tr><center>
Code readability goes to the trash, but speed can go way up! Pull everything to the left and then fold up.
I did this yesterday to a file and shrunk it size by almost 50%. Not only is the file size smaller, but the fewer lines of code run faster on the browser.
The next thing I would do would be work on any database calls you may or may not have on the front page...
Joe