2 ms·
Yes, it's much slower pre-http2 since no modern browser actually does pipelining, so it's going to be a socket per file HTTP2 fixes this by allowing multiple r
by kevingadd 5y ago
Yes, it's much slower pre-http2 since no modern browser actually does pipelining, so it's going to be a socket per file
HTTP2 fixes this by allowing multiple requests to occur in parallel on a single connection.
- forty 5y agoIn the specific case of JS import, it's still going to be pretty bad though, I guess, since you have to download a file, parse it to figure out the deps, then fetch them, parse them, etc, so you are limited in what you can do in parallel.
- eyelidlessness 5y agoThat’s what `modulepreload` &co is for. It’s a shame HTTP Push is dead, it was a much more general solution. But specifically for web pages the solution is more or less the same + 1 round trip (you won’t get the benefits of “push” until you at least process all the head>meta tags).