Re:ECMAScript 2016+ in Firefox
by vmasto on Wednesday February 22, 2017 @08:08AM
(#13705145)
HTTP/2 won't make a serious difference in regards to that, bundling will always be required. Also minifying will always be required, so there's always going to be a build step anyway.
[ Parent
| on HN ]
Minifying yes but why bundling?
https://hpbn.co/http2/#request-and-response-multiplexing
HTTP2 takes care of loading files via multiplexing, and ES6 modules take care of loading JS in proper order, no need to bundle AFAIU.
Sorry for the late reply. Multiplexing is not a panacea, there's still some overhead, and even if there wasn't there's still a point where you start to lose lot of performance by limiting gzip compression (the smaller the file the less efficient the compression is).
You can read more about why we'll always need a bundling step at the following links:
http://engineering.khanacademy.org/posts/js-packaging-http2....
https://medium.com/@asyncmax/the-right-way-to-bundle-your-as...
https://medium.com/webpack/webpack-http-2-7083ec3f3ce6#.74q6...