This is a simple JS polyfill to allow using Chrome's new
loading= attr on img elements.
Install LL Polyfill with npm using
npm install img-lazy-loading-poly --save
and include in your JS.
To enable lazy loading on an image, just add
loading="lazy"... Then images will load dynamically as the user scrolls.