Restored support to IE9 and IE10, as requested in #118 and #132.
To solve cases when you can't select the elements to load using a string, added the ability to pass a NodeList
object...
- as a second parameter in the constructor, after the regular option object, e.g.
var ll = new Lazyload({}, myNodeList)
- as a single parameter to the
update()
method, e.g.ll.update(myNodeList)
To solve cases when you can't select the elements to load using a string, added the ability to pass a NodeList
object to the elements_selector
option, as suggested by @SassNinja in #130.
Solved a problem with cdnjs.com: version 10.0.0 was pointing to 9.0.0.
- Default options changes values:
- default for
data_src
is nowsrc
(wasoriginal
) - default for
data_srcset
is nowsrcset
(wasoriginal-set
)
- default for
- Restored tests using Jest
- Squashed a bug which didn't make images inside
picture
load correctly
LazyLoad is now faster thanks to the Intersection Observer API.
IMPORTANT! Browser support changed. Find more information in the README file.
Restored support to IE9 and IE10, as requested in #118 and #132.
Updated from grunt to gulp (run with gulp scripts).
Added quotes in background image URLs, as suggested in #114 (thanks to @vseva).
Fixed a bug that affected performance.
Fixed reference to old names in demo files.
- The main file to include is now
dist/lazyload.min.js
as you would expect, and no longerdist/lazyload.transpiled.min.js
. - The non-transpiled version is now named lazyload.es2015.js
- Now using
element.dataset
to read data attributes - New readme! New website!
Bug fixes:
- Fixed #87
IMPORTANT! Browser support changed. Find more information in the README file.
- Refactored code now using more modules
- Saving ~0.5 kb of transpiled code going back from ES2015
class
to function'sprototype
Source code converted to ES2015 modules, bundled with rollup.js and transpiled with babel.
Wanna go back and back in time? Take a look at the release history on GitHub!