Page 1 of 6
React Strategic Lazy Loading
Challenge 1 / 3
A React e-commerce application has 20 features, but analytics show that 80% of users primarily use: Product Search, Shopping Cart, and Checkout.
What would be your performance optimization strategy?
*
Answer #1
Lazy load all components to minimize the initial bundle size
Only lazy load the checkout process since it's the most critical for revenue
Include Product Search, Shopping Cart, and Checkout in the main bundle; lazy load the remaining 17 features
Lazy load everything except the homepage to ensure fast initial loading
Omit lazy-loading by having a single bundle with all the code
Next