Why bundle optimizations are no longer a concern in HTTP/2

后端 未结 4 664
温柔的废话
温柔的废话 2020-12-04 19:52

I read in bundling parts of systemjs documentation that bundling optimizations no longer needed in HTTP/2:

Over HTTP/2 this approach may be preferable

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-04 20:16

    HTTP/2 supports "server push" which obsoletes bundling of resources. So, yes, if you are you using HTTP/2, bundling would actually be an anti-pattern.

    For more info check this: https://www.igvita.com/2013/06/12/innovating-with-http-2.0-server-push/

提交回复
热议问题