Router Preloading Strategies
Explain how preloading strategies fetch lazy-loaded chunks in the background after initial load, and the built-in options available.
Lazy loading alone means a user pays a network round-trip the first time they navigate to any given feature, which can feel like a stutter compared to an eagerly-loaded route. Preloading strategies solve this by fetching lazy-loaded chunks in the background, after the initial app has already become interactive, so that by the time the user actually navigates there, the chunk is already cached and the navigation feels instant.
NoPreloading is a shop that only unpacks a delivery box when a customer specifically asks for that item; PreloadAllModules is unpacking every box in the stockroom right after opening, whether or not anyone will buy those items today; a custom strategy is selectively unpacking only the popular items ahead of time based on what you already know customers tend to want.