DEV Community

Discussion on: Progressive Bundling

Collapse
 
yacinehmito profile image
Yacine Hmito

loading too many sub-modules at once can create a bottleneck that can increase the time it takes to load your web page completely

Even with HTTP/2 multiplexing?

Collapse
 
kristoferjoseph profile image
kj • Edited

Yes.

As I stated in the post, you can get a long way with multiplexing but at a point ( which is different for every app ) the waterfall created by loading submodules will become a bottleneck.

This isn't speculation either.
We have been 100% ES Modules since they have been in general availability.
I personally hit the limit while building begin.com.
You get to benefit from my pain ;)

Collapse
 
swyx profile image
swyx

even the official recommendation from the V8 team says multiplexing isn't suitable for more than 100 modules. can dig on my Twitter if you need a source