From Dev.to
Preload just before visibility with rootMargin, thresholds, and a stability check
IntersectionObserver is great for lazy-loading, but the tricky part is deciding when to start loading. If you wait until the element is visible, users see pop-in. If you start too early, you waste ban...
