如何降低ASP.NET应用程序的页面加载时间? [英] How to decrease the page load time in ASP.NET application?

查看:141
本文介绍了如何降低ASP.NET应用程序的页面加载时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何减少ASP.NET应用程序的页面加载时间?应该是什么precautions和特别是当我们与数据库交互

例如。


  1. 明智地使用视图状态

  2. 在部署应用程序时,设置在web.config中



解决方案

从一些的TechEd 2010北美的主要外卖的:


  • 缓存是关键的性能,非常仔细地考虑你的缓存​​策略。

  • 禁用ViewState中如果可能的话。

  • 设置<编译调试=false的方式>在部署应用程序时,在web.config中

  • 考虑CDN的或子域图形和其它静态内容。

  • 将JavaScript的页面的底部,CSS在顶部。

  • 考虑对图标和其他小的图形CSS精灵。

您可以在网上观看这里的会议,他们都强烈建议:

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. wise use of viewstate
  2. Set in web.config when deploying the app

    etc

解决方案

Some of the key "take-aways" from TechEd 2010 North America:

  • Caching is key to performance, consider your caching strategy very carefully.
  • Disable viewstate if possible.
  • Set <compilation debug="false"> in web.config when deploying the app.
  • Consider CDN's or subdomains for graphics and other static content.
  • Place javascript at the bottom of the page, CSS at the top.
  • Consider CSS sprites for icons and other "small" graphics.

You can watch the sessions online here, they're both highly recommended:

这篇关于如何降低ASP.NET应用程序的页面加载时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆