Summary
The Intersection Observer API provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport.
1
It eliminates the need for costly DOM and style queries, continuous polling, and use of custom plugins, and allows applications to significantly reduce their CPU, GPU, and energy costs.
2
The API is designed to be asynchronous and can be used to calculate element visibility, implement pre-loading and deferred loading of DOM content, and implement data-bound scrolling lists.
2
According to
See more results on Neeva
Summaries from the best pages on the web
Summary
The Intersection Observer API is an API that can be used to understand the visibility and position of DOM elements relative to a containing element or to the top-level viewport. It eliminates the need for costly DOM and style queries, continuous polling, and use of custom plugins, and allows applications to significantly reduce their CPU, GPU, and energy costs. The API is designed to be asynchronous and can be used to calculate element visibility, implement pre-loading and deferred loading of DOM content, and implement data-bound scrolling lists.
Intersection Observer
w3.org
A polyfill for IntersectionObserver. Latest version: 0.12.2, last published: 8 months ago. Start using intersection-observer in your project by running `npm i ...
intersection-observer - npm
npmjs.com