如何降低ASP.NET应用程序的页面加载时间? [英] How to decrease the page load time in ASP.NET application?
本文介绍了如何降低ASP.NET应用程序的页面加载时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何减少ASP.NET应用程序的页面加载时间?应该是什么precautions和特别是当我们与数据库交互
例如。
- 明智地使用视图状态
-
在部署应用程序时,设置在web.config中
等
解决方案
从一些的TechEd 2010北美的主要外卖的:
- 缓存是关键的性能,非常仔细地考虑你的缓存策略。
- 禁用ViewState中如果可能的话。
- 设置
<编译调试=false的方式>在部署应用程序时,
在web.config中 - 考虑CDN的或子域图形和其它静态内容。
- 将JavaScript的页面的底部,CSS在顶部。
- 考虑对图标和其他小的图形CSS精灵。
您可以在网上观看这里的会议,他们都强烈建议:
- 我的网站是如此缓慢......我不知道该怎么办才好!与托马斯Deml
- 与Microsoft Visual Studio 2010与理查德·坎贝尔 网络负载测试
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.
- wise use of viewstate
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:
- My Web Site Is So Slow...and I Don’t Know What to Do about It! with Thomas Deml
- Web Load Testing with Microsoft Visual Studio 2010 with Richard Campbell
这篇关于如何降低ASP.NET应用程序的页面加载时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文