Releases: Aljullu/react-lazy-load-image-component
Releases · Aljullu/react-lazy-load-image-component
1.2.1
Fixes
- Hide the placeholder after the image is loaded (#27, thanks @ashbrowning).
- Fix error
window is not defined
in server side rendering (#26, thanks @ashbrowning).
1.2.0
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
Big features
- New
LazyLoadComponent
. scrollPosition
is no longer required. Lazy load images and components that don't receive this prop, will listen to scroll/resize events themselves.- Allow displaying CSS effects when the image becomes visible.
Small features
- Add throttle and debounce.
- Add
visibleByDefault
prop.
Fixes
- Display default placeholder as an inline-block element.
1.0.3
1.0.2
Fixes
- Images descendant of a positioned element didn't have their position correctly calculated.
- Image position was not updated when the component was re-rendered in a different position but all props stayed the same.
- Trigger
afterLoad
oncomponentDidUpdate
instead ofsetState
callback.
Performance
- Avoid duplicate renders when props were changed.