Releases: Aljullu/react-lazy-load-image-component
Releases · Aljullu/react-lazy-load-image-component
1.2.1
07 Jan 18:41
Compare
Sorry, something went wrong.
No results found
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
30 Dec 20:31
Compare
Sorry, something went wrong.
No results found
Features
Use IntersectionObserver if the browser supports it (#6 ).
1.1.5
14 Oct 14:20
Compare
Sorry, something went wrong.
No results found
Fixes
Make it possible to run the code in node environment — Server Side Rendering (#11 , thanks @gihanshp).
1.1.4
15 Sep 17:34
Compare
Sorry, something went wrong.
No results found
Fixes
Fix regression that was displaying an unnecessary <span> around DOM placeholders.
1.1.3
15 Sep 12:07
Compare
Sorry, something went wrong.
No results found
Fixes
Allow a React class component to be used as a placeholder (#7 ).
1.1.2
22 Aug 17:34
Compare
Sorry, something went wrong.
No results found
1.1.1
06 Apr 19:44
Compare
Sorry, something went wrong.
No results found
Fixes
Fix a compatibility issue with preact-cli (#2 ).
1.1.0
22 Mar 18:54
Compare
Sorry, something went wrong.
No results found
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
27 Feb 19:49
Compare
Sorry, something went wrong.
No results found
Fixes
ReactDOM dependency was included in the build file.
1.0.2
25 Feb 19:13
Compare
Sorry, something went wrong.
No results found
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 on componentDidUpdate instead of setState callback.
Performance
Avoid duplicate renders when props were changed.