A modern lazy loading library for images.
_getOffset
helper - it now uses getBoundingClientRect
.Usage documentation improvements.
Added the container
option!
Images can now be loaded based on their position within a designated container (it no longer has to be the window
). Hopefully this will be useful for those building single page applications.
Huge thanks to @wong2, who created the prototype for this functionality (see #27).
Workflow improvements!
src
folderdist
folder
Layzr is now on CDNs.
Huge thanks to @irazasyed!
Fix bug in "element in viewport" calculation.
Make options optional (oops).
Added data-layzr-hidden
attribute support.
Updated all documentation, and moved it to the GitHub README.