@openforge/lazy-img
v1.0.0
Published
Web Component built with Stencil to lazy load images
Downloads
3
Keywords
Readme
lazy-img
What is it?
lazy-img is a web component built with Stencil that allows you to lazy load images as the user scrolls them into the viewport. On supported browsers (Chrome and chrome based browsers, Firefox and Edge) it uses IntersectionObserver to accomplish this functionality. For Safari and IE it simply falls back to setTimeout.
This is a sample component used for an Ionic Meetup demonstration