Releases: callmecavs/layzr.js
Releases · callmecavs/layzr.js
v2.2.2
v2.2.1
Update README to accommodate the license change.
v2.2.0
Change license back to MIT.
v2.1.0
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
Specify GPL license version (3.0).
v2.0.3
Change license to GPL.
v2.0.2
Fix initial scroll position bug, preventing images in the initial viewport from loading (another find by @ndimatteo).
v2.0.1
Fix bug in threshold calculation (good find by @ndimatteo).
v2.0.0
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 thewindow
)selector
option (assumed to be the newdata-normal
attribute)data-layzr-bg
option (can be replicated using the new event emitter)data-layzr-hidden
option (replaced by the newupdate
API method)callback
option (replaced by the event emitter)- ~ 40 lines of source code
v1.4.3
- Fixed
destroy
method. Big thanks to @mauriciosoares and @NeXTs.