减少Asp.net MVC4中的页面加载时间 [英] Reduce page load Time in Asp.net MVC4

查看:100
本文介绍了减少Asp.net MVC4中的页面加载时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我们如何使用Asp.net MVC4减少页面加载时间。主页加载非常慢,我搜索了这个,但我有不同的解决方案,

i不知道从哪里开始。

谢谢

解决方案

尝试使用 Google SpeedTracer [ ^ ]了解您的网页加载速度缓慢的原因。然后开始解决问题。



如果没有关于你的页面的更多信息,很难说如何让它更快。也许你花了很长时间来查询数据库,也许你的图像很大,也许你的服务器很慢,也许你的连接很慢等等。


这个帖子已经解决但我想要在这里添加一点。



如果您没有使用任何视图引擎,如ASPX View Engine,最好将其删除以提高性能,它是其中之一许多MVC性能调优技巧。



请通过以下文章



http://www.c-sharpcorner.com/UploadFile/abhikumarvatsa/removing-or -customizing-view-engines-in-mvc / [ ^ ]


检查这个

MVC - B开展和缩小 [ ^ ]

Hi,
How can we decrease page loading time, iam using Asp.net MVC4. home page is loading very slow , i searched for this , but i got different solutions,
i have no idea where to start.
Thank you

解决方案

Try using Google SpeedTracer[^] to find out why your page is loading slow. Then start fixing the problems.

Without more information about your page, its difficult to say how to make it faster. Maybe you are taking a long time to query the database, maybe your images are huge, maybe your server is slow, maybe your connection is slow, etc.


This post already solved but I want to add one point here.

If you are not using any view engine like ASPX View Engine, it is better to remove it to improve the performance, it is one of the many MVC performance tuning tips.

Please go through below article

http://www.c-sharpcorner.com/UploadFile/abhikumarvatsa/removing-or-customizing-view-engines-in-mvc/[^]


Check this
MVC - Bundling and Minification[^]


这篇关于减少Asp.net MVC4中的页面加载时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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