Releases: dkern/jquery.lazy
Releases · dkern/jquery.lazy
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
1.6.7
1.6.6
1.6.5
0.6.4
0.6.3
0.6.2
0.6.1
Code Changes:
- new
custom loaders
be able to load every content you want to - added new public functions
config
,addItems
andgetItems
- 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
toitems
- updated all package json files
Other:
- with this new version even the new page lunches :)
http://jquery.eisbehr.de/lazy