How to decrease the page load time in ASP.NET application? What should be the precautions and specially when we are interacting with databases
e.g.
The most important thing before doing any work on optimizing, is indicating what needs to be optimized. Thousends of tips to optimize can be posted here, so it's better to find what your performance problem is, and ask a more specific question for help to optimize what you need. You can optimize 3 parts of a web application:
Serverside performance: Indicate the largest bottleneck (a profiler is an easy option to do that). Optimize the bottleneck. Optimizing smaller problems, or optimizing without measuring the amount of time can be a waste of time when the large one is still there.
Client side performance: Take the advise from tools like yslow, or google page speed.
Bandwidth: Send the smallest amount of data to the user as possible in the least amount of requests as possible.
This below information used to decrease the page load time
Some of the key "take-aways" from TechEd 2010 North America:
<compilation debug=”false">
in web.config when deploying the app.You can watch the sessions online here, they're both highly recommended:
Always use request to load concept in application. Try to avoid unwanted database hit on the page load.if you have large amount of data on page load then you can go with Ajax request call.
Always measure after you refactored something to see if it makes a difference.
Also please take a look here for more information.
Grz, Kris.