Skip to content

Tags: Code-Case/jquery.lazy

Tags

1.7.1

Toggle 1.7.1's commit message
1.7.1

- this update will bring all plugins to cdnjs and jsDeliver CDN
- some description changes

1.7.0

Toggle 1.7.0's commit message
1.7.0

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

Toggle 1.6.7's commit message
1.6.7

- 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

Toggle 1.6.6's commit message
1.6.6

- correctly escape background images (thx @pburke)
- use '.on("load", ...)' instead of '.load(...)' (thx @Pentie)
- 'getItems' now return only not completely loaded elements left (thx @zspitzer)
- reformat the whole code

1.6.5

Toggle 1.6.5's commit message
1.6.5

- change dates to 2016
- some readme cleanup

0.6.4

Toggle 0.6.4's commit message
0.6.4

- 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

Toggle 0.6.3's commit message
0.6.3

fixed bug on using custom loaders since newly added 'imageBase'

0.6.2

Toggle 0.6.2's commit message
0.6.2

- 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

Toggle 0.6.1's commit message
0.6.1

__Code Changes:__
- 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:__
- with the new version even the new website is launched :)
http://jquery.eisbehr.de/lazy/

0.5.4

Toggle 0.5.4's commit message
0.5.4

fixed error when call `onLoad` after all images are already loaded