开发者

How many PENDING ajax requests are allowed in modern browsers?

开发者 https://www.devze.com 2023-03-29 14:42 出处:网络
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? , w开发者_Python百科hich is about simultaneous

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? , w开发者_Python百科hich 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.


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?

0

精彩评论

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