LazyLoad is a lightweight, flexible script that speeds up your website by deferring the loading of your below-the-fold images, backgrounds, videos, iframes and scripts to when they will enter the viewport. Written in plain "vanilla" JavaScript, it leverages IntersectionObserver, supports responsive images and enables native lazy loading.
CHANGELOG.md
is now included in the package and installed along with it.eslintrc.json
, LICENSE
, CHANGELOG.md
, CODE_OF_CONDUCT.md
, README.md
, package.json
from the package files, as they didn't have any impact on code quality.Object.assign()
, as suggested in #611..eslintrc.json
, LICENSE
, CHANGELOG.md
, CODE_OF_CONDUCT.md
, README.md
, package.json
are now included in the packageThanks to @erikyo for #610
/dist
folder, as it's been unused since version 11Thanks to @erikyo for #607
""
) as value for class options (class_loading
, class_applied
, class_loaded
, class_error
, class_entered
, class_exited
) so that no DOM mutation will happen if not necessary. This is a potential performance improvement. Suggested in #605.npm audit
function
)callback_error
in background images demos, like suggested in #573. Thanks to @Soul244.image-set()
via data-bg-set