W3C

First Public Working Draft: Intersection Observer

The Web Platform Working Group has published a First Public Working Draft of Intersection Observer. This specification describes an API that can be used to understand the visibility and position of DOM elements (“targets”) relative to a containing element or to the top-level viewport (“root”). The position is delivered asynchronously and is useful for understanding the visibility of elements and implementing pre-loading and deferred loading of DOM content.