开发者

muliple XHR requests at the same time

开发者 https://www.devze.com 2023-04-04 11:02 出处:网络
I have a basic question about asynchronous request call. Does the browser execute more than one XHR at the same time, or does it abor开发者_StackOverflow中文版t a request if a new one is send, while t

I have a basic question about asynchronous request call. Does the browser execute more than one XHR at the same time, or does it abor开发者_StackOverflow中文版t a request if a new one is send, while the first is still working? Are there differences in the implementation between browsers?

I tried to create a hole bunch of requests in a loop, but all, except the last one, were aborted. So for now i plan to implement a queue for all requests, but i am not certain if this is really needed.

Greetings


Yes, browsers do allow multiple concurrent XHR.

If your code only succeeds with one, it's most probably because of a bug. If possible, create a small example and show us what you are doing.

0

精彩评论

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