React Component to lazy load images and components using a HOC to track window scroll position.
onLoad
overwrites, and call onLoad
inside onImageLoad
(#120, thanks @johnsonsu).trackWindowScroll()
(#97, thanks @TimLehner).getScrollElement()
(b02d1e1e381047eafc9fa373f138cabed746b1de).Features
wrapperProps
that allows passing props directly to the wrapper <span>
created to render placeholder or effects (#70, thanks @johnstonbl01).IntersectionObserver
for all components to improve performance (#71, thanks @fmmoret).Fixes
Fixes