Page Delay (ASP.NET + IIS)

Junior Spellweaver
Joined
Mar 21, 2006
Messages
129
Reaction score
0
Location
Netherlands
I have a question which is probably impossible to pin-point the exact problem nevertheless there might be some interesting or useful comments posted.

I wrote a Calendar in ASP.NET which can be accessed by multiple people at the same time and so forth. It appears to be however the first time you access the web-page (thus landing page) it tends to have a extremely long loading time compared to if you reload the page or move around and then back to the landing page.

The landing page hasn't really much spooky function and pretty much all functions are loaded when form (/page) is posted back. As for the landing page it is a login screen with just the basics which you expect from a login page.
 
Other content perhaps? Images, flash stuff, etc? Big javascript? Could be pretty much anything..

Yeah I was afraid I requested the impossible again.

It doesn't use flash and there are no images on the landing page.

It can't be the javascript or css as the page will load faster the second time (whilst javascript and css will not be cached, I presume?)

Just forget about this whole thing, it loads and it works... it is just slow with its 'initialization' or whatever people might think that it is.
 
javascript needs to be initialised. Especially on older versions of IE (6 and lower) the javascript engine is quiet slow (especially when it comes to adding strings to eachother), and this can cause considerable delay.

Javascript is indeed cached as far as I know :)

Try using different browsers and see if that makes any difference.
 
Can you show us the page? (not the code, the page itself)

See attachment (colors messed up due to saving as non-bmp).

javascript needs to be initialised. Especially on older versions of IE (6 and lower) the javascript engine is quiet slow (especially when it comes to adding strings to eachother), and this can cause considerable delay.

Javascript is indeed cached as far as I know :)

Try using different browsers and see if that makes any difference.

Tryed both MSIEX 6.0 and Mozilla Firefox 2.0.0.1 both seem to be affected by it, impossible to test if its slower then other.

Lets just assume its some initialization or some sort. I think we all have better things to sort out. Got loads to program anyway to worry about the initialization process being a bit slower then returning to that page.
 

Attachments

  • landing - Page Delay (ASP.NET + IIS) - RaGEZONE Forums
    landing.webp
    4.3 KB · Views: 29
Just wondering if your hidden variables were static or dyamically generated. Also loaded at ultra speed for me but I see the difference between loading and refreshing so if its not something dynamic like the variables, then Im guessing FragFrog is right about the js files.

Its pretty fast though. I'd add an "incorrect password" error or something however.
 
Just wondering if your hidden variables were static or dyamically generated. Also loaded at ultra speed for me but I see the difference between loading and refreshing so if its not something dynamic like the variables, then Im guessing FragFrog is right about the js files.

I guess I'll see if the JS can be optimzed, perhaps even leave some scripts out just to test.

Its pretty fast though. I'd add an "incorrect password" error or something however.

Mmm, that troubles me. Because actually it is in there, so you either logged in with my temporary account or didnt log at all. I guess I better change the password to be sure (should have done that earlier, but couldn't be bothered to go through all the trouble)
 
nah, I just put in some random junk, and it returned but said no error..

I tried random junk and get a message, bear in mind that the message just appears above the username and password field in bold text, not a pop-up or that sorts.

How would I know the user/pass o.O

I used a really easy password since I had to login like loads and loads of times for testing purposes.
 
This is definitely server-side.

I GET and it comes back with
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
instantly, then it just sits there (I closed the connection after ~30 seconds).

Tried to connect again, got 10060 (time out).

Server wasn't on I assume thats why you got the timeout error. That code you can't isn't possible either as I programmed everything in XHTML 1.0 Strict and it is defined.

Thank you all for your support, I think I know what I needed to know.
 
Back