4 ms·
lazy loading images are implemented in the browser, you just need to add the loading="lazy" attribute to your img tag intersectionobserver still has a ton of u
by asddubs 6y ago
lazy loading images are implemented in the browser, you just need to add the loading="lazy" attribute to your img tag
intersectionobserver still has a ton of use cases where it's massively faster than continuously monitoring the scroll event (e.g. infinite scrolling)