1.7.1
New Features:
- Lazy can now have it's own loader plugins
- support for
srcset
andsizes
on<img>
tags imagebase
attribute can now be set for single elements- Lazy now works even with Zepto framework instead of jQuery
New Plugins:
- AJAX
- Audio / Video
- iFrame
- NOOP
- Script
- YouTube
Code Changes:
- renamed internal
configuration
function toconfig
to be more consistent - switch internally from
config()
function toconfig
object - moved instance
name
from prototype to configuration option - switched from an object property to variable for namespace parameter
- refactored code for better variable usage
- better
for
loop usage everywhere - smallest
if
-conditions whenever possible - plugins and loaders are now prioritized before image loading
- fixed bug on multiple instances destroying each others events
- fixed usage of
onFinishedAll
with custom loaders or plugin only - fixed double
load
orerror
event on plugins and custom loaders
Minimization Changes:
- added function
_getElementTagName
for reused task - created some dictionary strings for often used words
- complete refactoring for much smaller minified version
Description Changes:
- fixed some typos and JSDoc's
- added more inspection rules for IntelliJ IDEA IDE's
- added JSDoc for constructor