There\'s a div (brown rectangle) on the page. The page is higher than the viewport (orange rectangle) so it can be scrolled, which means that the div
div
Please note that the Intersection Observer API is available since then, made specifically for this purpose.