Skip to content

Releases: Aljullu/react-lazy-load-image-component

1.2.1

07 Jan 18:41
Compare
Choose a tag to compare

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
Choose a tag to compare

Features

  • Use IntersectionObserver if the browser supports it (#6).

1.1.5

14 Oct 14:20
6bba9a3
Compare
Choose a tag to compare

Fixes

  • Make it possible to run the code in node environment — Server Side Rendering (#11, thanks @gihanshp).

1.1.4

15 Sep 17:34
df3a7cc
Compare
Choose a tag to compare

Fixes

  • Fix regression that was displaying an unnecessary <span> around DOM placeholders.

1.1.3

15 Sep 12:07
91d9509
Compare
Choose a tag to compare

Fixes

  • Allow a React class component to be used as a placeholder (#7).

1.1.2

22 Aug 17:34
Compare
Choose a tag to compare

Fixes

1.1.1

06 Apr 19:44
Compare
Choose a tag to compare

Fixes

  • Fix a compatibility issue with preact-cli (#2).

1.1.0

22 Mar 18:54
Compare
Choose a tag to compare

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
Choose a tag to compare

Fixes

  • ReactDOM dependency was included in the build file.

1.0.2

25 Feb 19:13
Compare
Choose a tag to compare

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.