Experiments in lazy loading the ArcGIS API for JavaScript to get better performance.
Long page of text with four maps interspersed throughout.
- control (no lazy loading)
- intersection-observer (Lazy Loading with Intersection Observer)
Loading 100 map controls on a single page.
- control
- No lazy loading
- On most browsers last n maps load because only n WebGLRenderingContexts allowed
- intersection-observer
- Lazy Loading with Intersection Observer
- scroll-stop
- Lazy Loading by checking which maps are in view when scrolling stops