Intersection Observer

intersectionObserver gives you an incredibly simple way to use the Intersection Observer API — so much that you’ll probably wanna ditch the original API for good.