const onIntersection = (entries) => { for (const entry of entries) { if (entry.isIntersecting) { console.log(entry); } } }; const observer = new IntersectionObserver(onIntersection); observer.observe(document.querySelector('#some-target')); What's challenging with Intersection Observer v1? To be clear, Intersection Observer v1 is great, but it's not perfect. There are some corner cases where the A