Archive for the ‘IntersectionObserver’ Category

IntersectionObserver comes to Firefox

Posted on: No Comments
A great intro by Dan Callahan on why IntersectionObserver is so damn useful: 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! Unfortu...

Native Infinite Scrolling with the IntersectionObserver API

Posted on: No Comments
Recently an interesting new client-side JavaScript API appeared on the Web Platform, the IntersectionObserver API. This tiny but useful API provides a means to efficiently monitor (observe) the visibility of specified DOM elements, that is, when they a...