4 ms·
With http2, relevant javascript files will be increasingly hosted on the same domain Why is that?
by hxn 11y ago
With http2, relevant javascript files will be
increasingly hosted on the same domain
Why is that?
- MatthewMcDonald 11y agoThere's a limit on the number of simultaneous requests per domain with http1, which will not be present in http2 [0]. This limit meant that for best performance, static files should be served from multiple (sub)domains. [0] https://mattwilcox.net/web-development/http2-for-front-end-web-developers https://mattwilcox.net/web-development/http2-for-front-end-w...
- Conlectus 11y agoThe way this is phrased sounds backwards to what you actually mean. HTTP/2.0 supports _single connection multiplexing_, which means that domain sharding (splitting into different domains) is a _bad practice_.
- juliangregorian 11y agoYou're both right. There's two separate (but related issues) here.
- deleted 11y ago[deleted]