Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi All,

 

I have just finished my first e-commerce site which I am pleased with as much as I am grateful to people at this forum for their help.

 

One thing bothers me though. When I load the site for the first time, it takes a long time to fire up. Any other attempts after this are fine, even if I empty my temporary internet files it still loads quick.

 

I know this might be a too general query but are there any classic pitfalls that may cause this. I suspect that because my site has 16 or more controls (ascx) files it is the server being slow at creating these controls, are they cached for so long after this or something?

 

Please help if you can.

 

Many thanks, Dave. :) :) :)

Posted

I would say it's the compilation. When the website is first requested the files are compiled. With further requests .Net checks for a newer version of the file - if one doesn't exist it uses it's already compiled version.

 

:)

Please check the Knowledge Base before you post.

"Computers are useless. They can only give you answers." - Pablo Picasso

The Code Net

Posted
I would say it's the compilation. When the website is first requested the files are compiled. With further requests .Net checks for a newer version of the file - if one doesn't exist it uses it's already compiled version.

 

:)

 

Yes, Mark's right. Your application gets compiled the first time it runs. This doesn't occur per visitor, only on the first visit to the site [by anyone].

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...