Skip to content
Performance Lab · LAB-05Under investigation

“A smaller bundle is always faster.”

Smaller usually helps, but *when* bytes arrive and *what* they do on arrival matter more than the total.

Verdict
PARTLY TRUE
Level
SYSTEMS
Division
LAB-05
References
02

Investigation

Splitting a 500KB bundle into ten 50KB chunks does not make the page faster if the critical path now needs six of them in sequence. Each additional request on the critical path costs a round trip, and a waterfall of small files can easily lose to one larger file.

ChangeUsually helpsCan backfire
Remove an unused dependencyAlways
Route-level code splittingYesIf the split point is on the critical path
Component-level splittingSometimesWaterfalls, layout shift on late arrival
Inlining critical CSSYes for first paintUncacheable; bloats every HTML response
Deferring all scriptsYesDelays hydration if interaction comes early

References

  1. 01web.devReduce JavaScript payloads with code splitting
  2. 02web.devUnderstanding the critical path