Intersection Observer comes to Firefox

What do infinite scrolling, lazy loading, and online advertisements all have in common? They need to know aboutβ€”and react toβ€”the visibility of elements on a page! Unfortunately, knowing whether or not an element is visible has traditionally been difficult on the Web. Most solutions listen for scroll and resize events, then use DOM APIs like […]

Link: https://hacks.mozilla.org/2017/08/intersection-observer-comes-to-firefox/