I used jQuery exclusively on my last project to do all my AJAX calls. I used both $.ajax and $.getJSON calls to return data to the page. However, I see a ton of examples online using jQuery to handle UI and data formatting, but using ASP.NET AJAX to actually perform web service calls and retrieve data. Is it more efficient to use ASP.NET AJAX to retrieve data for AJAX calls? Does it perform better than jQuery?
Share
I don’t think it will make too much difference whether you use ASP.NET Ajax or jQuery. What might make difference is what data is returned and what format it is in i.e. XML, HTML or JSON.
For example, it might be more efficient to return a lightweight JSON object from an Ajax call rather than a big XML document: you can always monitor the size of the Ajax response using Firebug or something similar.
You’ll probably have to judge each scenario on it’s own merits though.