use IntersectionObserver Api to implement lazyload, IntersectionObserver only support chrome, if not support intersectionObserver,please use IntersectionObserver polyfill
let options = {
root: null,
rootMargin: '0% 0%',
threshold: 0,
selector: '[data-src]'
}
import Lazyload from 'lazyload'
Lazyload({
selector: '[data-src]'
})
please see /demo/lazyloadDemo.html