Multiple AJAX requests on a page efficiency
NickName:Derple Ask DateTime:2014-06-20T20:51:17

Multiple AJAX requests on a page efficiency

I have an application of which loads around 5 sections of data using AJAX.

I find that on load of the application, sometimes (1 in 8) one or more of the sections hang and sometimes does not complete.

The AJAX requests are POST/AJAX requests and populate div containers with the associated php/html from the server.

They are not too bulky.

I was wondering why this might be happening? Is there a more efficient way of handling multiple AJAX calls? Perhaps ordering them? Do they perhaps cause issue with the server if multiple requests are sent at the same time?

Copyright Notice:Content Author:「Derple」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/24327725/multiple-ajax-requests-on-a-page-efficiency

More about “Multiple AJAX requests on a page efficiency” related questions

Multiple AJAX requests on a page efficiency

I have an application of which loads around 5 sections of data using AJAX. I find that on load of the application, sometimes (1 in 8) one or more of the sections hang and sometimes does not comple...

Show Detail

Efficiency dilemma: to use AJAX or not?

I have a site that displays a list of articles, along with category filters. The filters can be toggled on and off and the article list will adjust automatically. Currently, I have it so when filt...

Show Detail

Multiple AJAX requests with React

I'm currently developing a React application which has multiple container components each of which perform an AJAX request in componentDidMount to an API to return some data, which is then stored i...

Show Detail

Limit ajax requests to a single page

I have a web management page I build for my users, this page contain ajax that being call every 4 seconds to display real time information, my problem is that some of my users open this page multiple

Show Detail

Multiple AJAX Requests - Troublesome?

Right now I'm using AJAX to pull in a list of active streams (TwitchTV) and it's viewers and I'm requesting this every second. At time the list of streams to check can get quite lengthy so I plan on

Show Detail

One single long connection with server, or multiple instant requests?

In terms of efficiency which is better: maintaining one single long connection with server, or sending multiple instant requests? I have a web application with multiple interfaces. On one, when user

Show Detail

Ajax multiple requests at the same time

recently I developed a project were I send multiple ajax requests at a single aspx page. I also put a timer were this request is happening with interval 5 seconds. Everything seems to work fine until

Show Detail

Multiple requests issue with ajax calls

I have a multi-tab feature incorporated with ajax calls. show.html.erb <a href="#tabs-2A<%= id %>"> # dynamically generated tabs within loop $.ajax({ type: "GET", u

Show Detail

ASP.NET MVC HTML.AntiForgeryToken() with multiple AJAX requests from one page

I'm creating a page that makes multiple AJAX form posts without a page refresh. I would like to use the ASP.NET MVC HTML.AntiForgeryToken() helper to secure the form against CSRF attacks. I think ...

Show Detail

Multiple Ajax Requests (with one callback)

I'm sending multiple ajax requests and want to get a callback if all the requests are successful. I've found $.when($.ajax(), [...]).then(function(results){},[...]); but that only works when you kn...

Show Detail