Intersection Observer API is an API that detects elements using the isIntersecting property.
The API helps us detect unobserved elements and whether an image has the src or data-src attribute.
We select the URL from the data-src attribute and move it to the src attribute for the browser to load the image.
Interesting Articles