Tags: Code-Case/jquery.lazy
Tags
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
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/
PreviousNext