User experience and browser behavior
Lazy loading can reduce initial JavaScript but may add requests, waterfalls and loading delay. A dynamic import does not guarantee that code waits until a section enters the viewport.
- Start from native browser semantics
- Test loading, error and interaction states
- Measure user experience on representative devices