Package Exports
- @huyhq_syn/lazyload-observer
- @huyhq_syn/lazyload-observer/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@huyhq_syn/lazyload-observer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
LazyLoad Package
A simple library for lazy loading images using the Intersection Observer API.
Installation
You can install the package via npm:
npm install lazyload-package
import LazyLoad from 'lazyload-package';
const customObserver = new LazyLoad({
root: document.querySelector('#scrollArea'), // Custom scroll area
rootMargin: '10px', // Custom margin
threshold: 0.5, // Custom threshold
});