3 ms·
With HTTP2 would we not use 1 request / stream but with multiplexing to allow a huge number of parallel requests?
by CraigJPerry 3y ago
With HTTP2 would we not use 1 request / stream but with multiplexing to allow a huge number of parallel requests?
- e1g 3y agoHTTP2 improves on that bottleneck but not as much as expected. I'm struggling to find relevant benchmarks now, but anecdotally even on localhost when using a dev pipeline without a bundler (such as Vite), any reasonably complex application takes many seconds to fetch thousands of small JS files.
- rscrawfo 3y agoThis is something I’m facing now. Even hundreds of files slow things down. Code splitting is the answer, but that adds some other complexity that we may not want.