开发者

JQuery ASP.Net Performance Question

开发者 https://www.devze.com 2023-02-05 19:51 出处:网络
The ASP.Net app (not MVC) is slow, someone heard that Jquery can speed things up by offloading work to the client.

The ASP.Net app (not MVC) is slow, someone heard that Jquery can speed things up by offloading work to the client. Due to security reasons Jquery/Client can't make Web Service calls so squirrely ways of having the code behind making Web Sevices calls and passing data back to the client are being done to Jquery popups, Jquery gidviews, Jquery (fill in blank of existing server side control). We've got Jquery AJAX going on along with Microsoft AJAX Upda开发者_运维百科te panels, which I'm worried about.

Question is: Are we really going to get a performance boost (which my gut says No) or are we on our way to a slower, more painful app performance?


Don't mix and match frameworks. It can cause problems and will certainly degrade performance. Choose one and stick to it. UpdatePanels are easy but will never be as fast as jQuery and web services.

http://encosia.com/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/


I've never used the MS Ajax library but I have worked extensively with ASP.NET (webforms and MVC) and jQuery.

If this is an internal\intranet application or you don't need to worry about SEO, then using Ajax to pull content in will be fine. It will help your pages load and render in the browser quicker but your data still wont be available. You are really just breaking the hard work into several smaller components but the same amount of work is going to be done either way.

If you just care about getting a page rendered in the browser so that it doesn't feel (to the user) that its taking forever to load, then this is a great idea. If that isn't the ideal outcome, you might want to focus your efforts on figuring out why its taking so long to load data.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号