First, I want to make clear that I am not talking about this question How many concurrent AJAX (XmlHttpRequest) requests are allowed in popular browsers? , which is about simultaneous requests.
Instead, I want know if there is a limit on the number of pending ajax requests, before the browser potentially starts cancelling them or throwing errors.
Running some simple tests, I've seen that when the limit of about 6 simultaneous requests is hit, the browser will start queuing requests in a graceful manner. Once a 'slot' becomes available, it is used and a new request is sent to the server.
I have also seen that Chrome, Firefox and even IE will gracefully handle a queue of about 100 requests.
It is worth noting that browsers can generally only handle 6 ajax requests at a time, this may catch you out.
How many concurrent AJAX (XmlHttpRequest) requests are allowed in popular browsers? Bookmark this question. Show activity on this post. In Firefox 3, the answer is 6 per domain: as soon as a 7th XmlHttpRequest (on any tab) to the same domain is fired, it is queued until one of the other 6 finish.
AJAX just uses a combination of: A browser built-in XMLHttpRequest object (to request data from a web server) JavaScript and HTML DOM (to display or use the data)
Not possible. It's the browser's responsibility.
I also guess that it's indicated from maximum number of current opened connection and here's the situation in IE Max-Connections and this thread also may help How many concurrent AJAX requests are allowed in popular browsers?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With