On browsers that support IntersectionObserver
, you should see
a list that loads additional items as you scroll down.
Available in Chrome 51+ | View on GitHub | Browse Samples
The IntersectionObserver API provides an API to understand the visibility and position of DOM elements relative to a containing element or to the top-level viewport.
This sample illustrates using IntersectionObserver
to implement a infinite
scroller without having to rely on scroll events. A sentinel element triggers the loading
of additional elements once it comes into view and is being recycled after the new
elements have been attached to the list.
The Google Developers Web Updates
article provides more details on IntersectionObserver
.
On browsers that support IntersectionObserver
, you should see
a list that loads additional items as you scroll down.