Hacker News new | ask | show | jobs
by axismundi 1684 days ago
Don't bundle. The only reason for bundling is too many requests to the server. Use HTTP/2 instead.
2 comments

If you do that you're stuck with round trip times all the way down the dependency tree. HTTP/2 reduces the overhead of that, but doesn't eliminate it, so now you've added a bunch of loading time to your site.
I don't see a counterargument here. "It's fast" doesn't change the fact that using 'native' imports instead of bundles means you're still adding the round trip time for the browser to request each set of dependencies all the way down the dependency tree.
Works... as long as you are next to the server...