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
srcsetsupport- 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)
containeroption (assumed to be thewindow)selectoroption (assumed to be the newdata-normalattribute)data-layzr-bgoption (can be replicated using the new event emitter)data-layzr-hiddenoption (replaced by the newupdateAPI method)callbackoption (replaced by the event emitter)- ~ 40 lines of source code