React · Middle · Question 34 of 75

Where is code splitting with lazy usually most beneficial?

Explanation

Route-based splitting gives the biggest win: the user loads code only for the page they're on. Heavy, rarely needed parts (a rich-text editor, maps) are split out separately. Splitting too finely causes request waterfalls and fallback flicker.

Further reading

Problem with a question

React · Middle · question 34

Test yourself

Take the React · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz