Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page loading slowly

Status
Not open for further replies.

tomed

Programmer
Apr 1, 2002
64
US
I'm having a little bit of trouble with load times on a web page I'm working on. There is under 30k worth of pics on the page and some assorted text. Yet it take 10 seconds or better to load it. It just sits at a blank white page and then when it starts loading everything, it finishes quickly.

Am I missing something really easy? This is my first ASP.NET site and everything has ran smoothly except this.
 
1. Load the page, then right-click and go to properties. What is the size of the page?

2. How many server controls do you have?

3. Do you have the view state enabled on all of them? For those that you do, do you need it?

4. (The most important...) Are you doing any complex processing? Explain the process that your page goes through when loading.

________________________________________
Michael C Flanakin
Indigo Web Systems
michael.flanakin@indigows.com
 
The very first time your page is requested, the Common Langauge Runtime compiles your page to a new .DLL in the background, and the page's loading time will be quite slow. But, subseqent page requests, assuming no further changes to the page's code, will be faster than with ASP 3.0.
 
ciddivine:
The page is only 4k. The site is basically a brochure at the moment so the only things on the page are some pics and text.

jasonsalas:
Does that compile the everytime someone loads it for the first time on their machine or just once, the initial time anyone loads it?
 
Where are the images located? On your server, or another one? The only thing I can think of, off the top of my head, would be you are accessing another server that is down or having networking issues. Do you have any outside references?

To answer your other question, the compilation jasonsalas is referring to is done once, when the first user requests it. After you modify the content, however, it is compiled again.

________________________________________
Michael C Flanakin
Indigo Web Systems
michael.flanakin@indigows.com
 
tomed,

The CLR only does the initial compilation that has a big performance hit just once, the evry first time the page is accesssed by anyone in the world. So, every request afetr that will be much faster. You can get additional performance gains by using ASP.NET's caching facilities - either the OutputCache directive at the top of your .ASPX file or the Cache API.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top