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

前端 未结 11 721
独厮守ぢ
独厮守ぢ 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:30

    1. Never ever Deploy asp.net application under debug configuration on production. Find out here what scottgu has to say about this.

    2. Use Cookie-less domains to serve static resources like images, scripts, styles etc. Each client request is sent along with whole bunch of cookies, you don't need cookies while serving pictures or scripts. So host those resources on a cookie-less domain.

    3. Minify scripts, stylesheets and HTML response from the server. Removing unnecessary line-breaks and white-spaces can improve the time-to-load and bandwidth optimization.

    You'll find many tips from here.

提交回复
热议问题