George Mauer
George Mauer

Reputation: 122212

Why does chrome devtools show more than 6 simultaneous ajax requests?

According to this and a dozen different places chrome and most browsers limit simultaneous http requests to six per domain.

So what exactly am I seeing here?

18 simultaneous ajax requests

Isn't that eighteen simultaneous ajax requests?

Here is a sampling of the timing details:

The first request: First request is mostly waiting

The eighth request: The eighth request is mostly waiting

All the requests I've looked at reflect something similar.

What's going on?!

Upvotes: 5

Views: 2851

Answers (1)

Russell Zahniser
Russell Zahniser

Reputation: 16364

The bar for a request on the timeline starts when the request was enqueued, not when it was sent. If you inspect the timing for one of the later requests (by clicking the name and then the Timing tab) you will probably see that it was Blocking for some amount of time before it was Sending.

code

Here is a fiddle demonstrating this. The requests are sent in batches of six:

network timeline

... and the later requests show a Blocking time before they are sent:

timing details for one batch

Upvotes: 4

Related Questions