Skip to content

1.7.1

Compare
Choose a tag to compare
@dkern dkern released this 03 Jun 10:42
· 25 commits to master since this release

New Features:

  • Lazy can now have it's own loader plugins
  • support for srcset and sizes 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 to config to be more consistent
  • switch internally from config() function to config 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 or error 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