Lazy Loading Images With Intersection Observer in React

Creating a Gatsby Image style custom React component

Shubham Khatri
Better Programming
Published in
5 min readMay 19, 2021

--

Photo by Katarzyna Grabowska on Unsplash

Lazy loading is a common performance optimization technique followed by almost all asset-heavy websites. We often come across web pages where a blurred version of the image loads up and is then followed up with a high-resolution image. Although the total time taken to load up the…

--

--

Software Engineer at Meta | Passionate about Javascript, React and Web Development | Active Stackoverflow contributor