5 ms·
> That's not really head of line blocking, because in HTTP1.1 you'd just open up another connection. All browsers cap the number of connections which are opene
by richardwhiuk 3y ago
> That's not really head of line blocking, because in HTTP1.1 you'd just open up another connection.
All browsers cap the number of connections which are opened to a single domain (I think on IE this was 4, and has increased to 10, but it's not a large number).
- KaiserPro 3y agoyou are correct, but with keepalive, 10 connections over http1 will beat 1 connection over http2[1] even 4 connections will do better. [1] when there is high latency, or some packet loss, and the requests are batched evenly over all connections.
- srj 3y agoEach of those connections needs its own TCP and TLS handshake making a total of 6 trips. Also, although this didn't take off, h2 had push promise which could have been a big help.
- pi-e-sigma 3y agoYeah HTTP/2 push is so great that Chrome removed it. Straight from the horse mouth: "However, it was problematic as Jake Archibald wrote about previously, and the performance benefits were often difficult to realize" https://developer.chrome.com/blog/removing-push https://developer.chrome.com/blog/removing-push