Layzr.js Versions Save

A modern lazy loading library for images.

v2.2.2

7 years ago

Patch:

  • Update dist files, via new build system

v2.2.1

7 years ago

Update README to accommodate the license change.

v2.2.0

7 years ago

Change license back to MIT.

v2.1.0

7 years ago

Upgraded build system.

Hat tip to Rich Harris - switching from browserify to rollup shrank the processed dist file from ~4kb to ~2.5kb.

v2.0.4

8 years ago

Specify GPL license version (3.0).

v2.0.3

8 years ago

Change license to GPL.

v2.0.2

8 years ago

Fix initial scroll position bug, preventing images in the initial viewport from loading (another find by @ndimatteo).

v2.0.1

8 years ago

Fix bug in threshold calculation (good find by @ndimatteo).

v2.0.0

8 years ago

Layzr has been completely rewritten in ES6. The source code has a much more functional feel to it, and it includes an updated build system.

It is still small, fast, and purely vanilla JavaScript. Please read through the new README after reviewing the list of changes below:

Added

  • srcset support
  • event emitter
  • example code
  • CONTRIBUTING.md

Improved

  • API
  • handling of dynamically added elements
  • image setup/configuration
  • documentation

Removed

  • Bower support (use npm instead)
  • DOM ready state checking (replace based on your environment)
  • container option (assumed to be the window)
  • selector option (assumed to be the new data-normal attribute)
  • data-layzr-bg option (can be replicated using the new event emitter)
  • data-layzr-hidden option (replaced by the new update API method)
  • callback option (replaced by the event emitter)
  • ~ 40 lines of source code

v1.4.3

8 years ago
  • Fixed destroy method. Big thanks to @mauriciosoares and @NeXTs.