lazysizes is a fast (jank-free), SEO-friendly and self-initializing lazyloader for images (including responsive images picture/srcset), iframes, scripts/widgets and much more. It also prioritizes resources by differentiating between crucial in view and near view elements to make perceived performance even faster.
Lazysizes is built upon the Responsive image standard and extends it with additional functionality.
https://github.com/aFarkas/lazysizes