optimise website loading time
Hello all, I have my website all sorted, however, the loading time of each page on the site is taking too long.
Currently, my home page is taking around 24.32 seconds on a ISDN 128K connection to load.
Could any1 suggest some points that its worth me looking into that will enable my website to load quicker.
The first thing to work out is which part is causing it to take most time to load.
Just assuming that you've tested it on higher bandwidth connections or locally, I'd say that you've got far too much junk (unneeded images etc.) on the page or the code is extremely bloated.
Can you give us the link to your site so we can take a look?
First, what is the Time to First Byte and Time To Last Byte?
Second, for ASP.NET, an easy place to start is rationalizing the viewstate. It can get real, real bloated. Especially when GridViews and the like are involved. Try turning it off selectively. Or globally, and see what breaks.
Hello there, thanks for your quick replies.
The url of the site is:
I only have the basic amount of images on the page, it must be the code.
i have tried disabling the viewstate of the page, which creates errors (as I have dropdown boxes that require a viewstate). After this, I have tried disabling just the Gridview viewstate (GridView1.EnableViewState = false , however this still does not make aany difference.
Any further ideas?
have you thought about your queries that are hitting your database? Might not be the code
Just thinking, is there any way of me loading a blank page first, then start to upload the content of the site one the blank page has loaded.
Its just at the moment the traiffic that is directed to me site will not wait for the page to load. (i.e. hight bounce rate)
Bandwidth-wise, it is a bit hefty, but not horribly so.
Usability-wise, it needs alot of help. I would go ask folks in the web site reviews forums what they suggest.
You have display issues in Firefox as well, lots of html errors as well. In FF I get the top/header then white space (lots of it) - that's not going to help your visitor retention.
Any ideas the problem with my sites code why it wont display properly in firefox?
The fundamental reason is that your HTML output is atrocious at best. Clean that up and it should fix most issues.
1 too many images,,,,,
2 too much fragments of HTML
3 try to optimize the gridview(i assume you are use data control,like dataview to be filled)
4 remove any unneccessay viewstate, hidden filed)