Guide52.1K views1,113 votes1 reply1 comment3,648 following
Chrome Intersection Observer: Decision Guide for Viewport Loading
Replace window.onscroll with Intersection Observer in Chrome to reduce main-thread load and trigger lazy loading before elements enter the viewport.