lazysizes is a good well-documented library, I have personally never used it.
there are other library options as well:-
The motive of this article was to show how lazy load works under the hood. Otherwise, you can always grab a library and call it a day.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.