How to decrease the page load time in ASP.NET application?

前端 未结 11 738
独厮守ぢ
独厮守ぢ 2020-12-25 08:33

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.

  1. w
11条回答
  •  渐次进展
    2020-12-25 09:26

    • Use MS Visual Studio 2010 which helps you in optimizing your .NET code for better performance.
    • CSS sprites are very useful when you have a lot of images in background.
    • Compress the contents of JavaScript files using gZip compresser and CSS file by removing white spaces and comments.
    • Avoid HTML comments as they are visible to client side by "View Source" option in browser, which will also reduce the file size.
    • Put most of the unnecessary JavaScript at the bottom of the page. For better performance dynamically load the JavaScript references after loading contents on your page.

提交回复
热议问题