Browser & Web Performance · Middle · Question 34 of 75
What does code splitting with dynamic import() give you?
- ✓Correct answer: Code for a feature is downloaded only when it's needed, shrinking the initial bundle
- 2All modules are merged into one bigger file
- 3Modules execute in parallel threads
Explanation
Splitting by route or by rarely used widgets (dialogs, editors, charts) reduces JS that must be parsed and executed at startup.