morgancodes
morgancodes

Reputation: 25265

What happens if I exceed my browser's ajax request limit?

Will it be smart and queue later requests for submission after earlier requests complete, or will it do something stupid like discard later requests which push it over its maximum number.

Is the answer the same across browsers, or does it vary?

Upvotes: 1

Views: 799

Answers (1)

Jacob Mattison
Jacob Mattison

Reputation: 51062

Are you referring to the fact that browsers typically limit the number of simultaneous connections to a particular host (2 is recommended by the HTTP spec)? If so, then yes, all requests will be queued. It's really no different then loading a web page that has a lot of images in it -- the initial load will result in a bunch of new requests, but they may have to wait based on the connection limit. But all of your images do load.

I'm not aware of an ajax-specific request limit.

Upvotes: 2

Related Questions