Jquery.lazy Versions Save

A lightweight, fast, feature-rich, powerful and highly configurable delayed content, image and background lazy loading plugin for jQuery & Zepto.

1.7.1

7 years ago

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

1.6.7

8 years ago
  • fixed bug with onFinishedAll event was not triggered correctly in some cases
  • replaced deprecated $.size() function with length property
  • changed some descriptions and typos

1.6.6

8 years ago
  • correctly escape background images (thx @pburke)
  • use .on('load', ...) instead of .load(...) (thx @pentie)
  • getItems() now returns only not completely loaded elements left (thx @zspitzer)
  • reformat the whole code

1.6.5

8 years ago

After exactly three years of open source development, many improvements and currently no open issues I think we're stable so far! So it's time to give Lazy an officially new major version. :tada:

Changes:

  • change dates to 2016
  • some readme cleanup

0.6.4

8 years ago
  • fixed bug on older iPads (thx to @Canu667)
  • fixed bug on IE triggering error callback before starts loading
  • let destroy() return undefined to possible redefine own variables
  • removed some spacing on line endings

0.6.3

8 years ago

fixed bug on using custom loaders since newly added imageBase

0.6.2

8 years ago
  • added new parameter imageBase
  • removed lazy.jquery.json because plugin registry is dead :(
  • reformatted bower.json and package.json
  • fixed cdnjs source link

0.6.1

8 years ago

Code Changes:

  • new custom loaders be able to load every content you want to
  • added new public functions config, addItems and getItems
  • public function loadAll ignores throttle now
  • by default the plugin will auto destroy itself when done, can be controlled by autoDestroy option
  • throttled functions now even got current instance passed to this
  • anonymous setup function now really only does setup, everything else has been moved
  • rewrite element selection in _lazyLoadItems for better detection and fixed visibility bug
  • width and height getter now uses jQuery functionality and become much smaller trough this
  • more optimized for much smaller minified code
  • removed fallbackWidth and 'fallbackHeight` from configuration because of new handling
  • removed whole queue handling because it was obsolete now
  • removed _items variable from plugin, unnecessary double definition
  • removed unnecessary separate functions and use some shorter handling
  • refactored some internal variables to new wording
  • function _triggerCallback now supports multiple arguments passed to callback
  • function _triggerCallback now returns a boolean indicates if callback was found
  • function _addItemsPlaceholder is now _prepareItems and contains all logic made on every items
  • fixed bug of instances sharing configurations
  • fixed start loading images after all internal function was created
  • fixed instance binding when no default image or placeholder is used

Description Changes:

  • complete new readme.md
  • fixes some jsDoc and comment typos
  • change internal wording from images to items
  • updated all package json files

Other: