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

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

So what do I see here?

18 simultaneous ajax requests

Isn't that eighteen concurrent ajax requests?

The following is a selection of time details:

First request: First request is mostly waiting

Eighth request: The eighth request is mostly waiting

All the queries I looked at reflect something like that.

What's happening?!

+4
source share
1 answer

The timeline for a request in the timeline begins when the request has been queued, and not when it has been sent. If you check the timing for one of the subsequent queries (by clicking the name and then the Timing tab), you will probably see that it was a lock for some time before sending.

code 

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

network timeline

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

timing details for one batch

+3
source

Source: https://habr.com/ru/post/1488355/


All Articles