background
I know that http/2
has a multiplexing mechanism in concurrency, and only one tcp is temporarily used no matter how many http requests there are. So there will be no request blocking.
the following figure shows multiple http requests in a tcp connection, with http/1.1
on the left and http/2
question
however, in the figure on the left, downloads style.css, and then script.js
only if there is request blocking . We know that the maximum concurrency of requests in http/1.1
is generally 6, and there is no blocking when there are less than 6 requests.
so, if there are six http resource requests,
- download concurrently with
http/1.1
6 tcp - download concurrently with
http/2
multiplexing a tcp, as well
which download is faster and why?