I've recently created an asp.net mvc web application and published it online.
When first loading the website you should find that it takes around 10-15 seconds for it to actually show, however after it's clicked once, it loads as quickly as I expect the second time round. I'm just wondering if anyone may have an idea of why the website is taking so long?
Typically an application will always take a little extra time to load as the application domain starts up.
Things helping exacerbate this could be anything from poorly written code (IE: Application_Start) to certain libraries you may be using (ORMs for example). How many modules do you have loaded?
For starters check your web.config for the infamous <compilation debug="true">
. That can have significant performance ramifications in a production setup. Set it to "false"!
Recommend googling something along the lines of "improving application startup time" and looking for things that may relate to your particular application.
Update from your first comment:
If you're seeing the application start up again (hangs for a few seconds) after 30 minutes consistently this is likely related to your Application Pool Recycling settings in IIS.
Go into IIS Manager (this assumes v7+):
In terms of general performance you may want to try:
If you're really stumped #2 may be your best bet even though it will be probably be the slowest option.