Skip to content

Releases: callmecavs/layzr.js

v2.2.2

08 Jan 22:04
Compare
Choose a tag to compare

Patch:

  • Update dist files, via new build system

v2.2.1

14 May 03:33
Compare
Choose a tag to compare

Update README to accommodate the license change.

v2.2.0

14 May 03:33
Compare
Choose a tag to compare

Change license back to MIT.

v2.1.0

08 May 06:13
Compare
Choose a tag to compare

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

01 Mar 04:12
Compare
Choose a tag to compare

Specify GPL license version (3.0).

v2.0.3

01 Mar 04:12
Compare
Choose a tag to compare

Change license to GPL.

v2.0.2

25 Jan 18:47
Compare
Choose a tag to compare

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

v2.0.1

25 Jan 16:53
Compare
Choose a tag to compare

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

v2.0.0

20 Jan 03:58
Compare
Choose a tag to compare

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

12 Aug 22:11
Compare
Choose a tag to compare