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.
Would be nice if scrollMonitor can use this native browser API for monitoring. And with a fallback for older browsers.