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