Explore Library
Flashcard

Bundle Size vs Runtime Cost

Shrinking a bundle reduces download time but not the CPU cost of parsing, compiling, and executing that JavaScript.

Question

Why can a smaller JS bundle still hurt performance, and what cost does bundle size hide?

Click to reveal answer