Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?!

like image 918
George Mauer Avatar asked Oct 04 '22 17:10

George Mauer


1 Answers

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

like image 70
Russell Zahniser Avatar answered Oct 12 '22 12:10

Russell Zahniser