Skip to content

Releases: fhopeman/justlazy

fix version

07 Mar 15:17
Compare
Choose a tag to compare
1.6.2

bump version to 1.6.2

Fix Uncaught ReferenceError

07 Mar 15:10
Compare
Choose a tag to compare
Merge pull request #12 from fradav/master

Removed hardcoded reference to "Justlazy"

Refactoring of replacement behavior

06 Nov 21:32
Compare
Choose a tag to compare
  • replacement occurs not directly after the construction of the image, but within the onload or onerror callback of the image itself.
  • The custom onloadCallback and onerrorCallback will be invoked immediately before the replacement, so you can add some classes or do some other stuff.
  • The onreplaceCallback will be invoked after the actual replacement.
  • The advantage is, that the placeholder can hold the styling of the lazy image (e.g. the spinner) and is not deleted until the image is completely loaded.

Migration:

  • Check your onerrorCallback: It's no longer for the missing data-src and data-alt attribute. With this callback you can define the action if the image could not be loaded properly.
  • The data-onerror-handler doesn't exist anymore. Please use the onerrorCallback instead.
  • Check the styling and position of your spinner. The styling can be placed on the placeholder itself and will be removed after the image is loaded in the background.

replace image in case of invalid src attribute

21 Sep 19:02
Compare
Choose a tag to compare

The replacement of the placeholder should be performed in any case. If the image could not be loaded (e.g. image doesn't exist) the image onerror event handler should fix that.

Load visible images immediately

23 Aug 18:56
Compare
Choose a tag to compare

Visible images will be loaded directly without scrolling if they are visible

Use getBoundingClientRect to calc visibility

06 Jul 21:56
Compare
Choose a tag to compare

Use getBoundingClientRect().top to calculate the visibility of the placeholder. This fixes some problems if the placeholder is inside a wrapper (placeholder.offsiteTop doesn't work proper in some case).

add UMD wrapper

07 Oct 07:09
Compare
Choose a tag to compare
1.3.0

Update README.md

refactor npm

20 Jul 19:53
Compare
Choose a tag to compare
1.2.0

bump version to 1.2.0

npm integration

19 Jul 10:18
Compare
Choose a tag to compare
1.1.0

change keywords for npm

add auto lazy load

17 Jul 22:48
Compare
Choose a tag to compare

plugin can lazy load images which are visible in the viewport automatically now