Vanilla Lazyload Versions Save

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.

19.1.3

1 month ago

19.1.3

  • File CHANGELOG.md is now included in the package and installed along with it
  • Updated Babel, Rollup and Playwright to the latest versions

19.1.2

  • Modernized code and smaller file bundles, everything is now shipped as in the ES2015 format.

19.1.1

  • Removed code to support image-set on legacy versions of Chromium browsers
  • Added coverage with 2 more demos for images with single src and a placeholder image

19.1.0

  • Added end to end tests to expand test coverage to more use cases and cross browser

19.1.2

1 month ago

19.1.2

  • Modernized code and smaller file bundles, everything is now shipped as in the ES2015 format.

19.1.1

  • Removed code to support image-set on legacy versions of Chromium browsers
  • Added coverage with 2 more demos for images with single src and a placeholder image

19.1.0

  • Added end to end tests to expand test coverage to more use cases and cross browser

19.0.5

1 month ago

19.0.5

  • Removed .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.

19.0.4

  • Removed Babel plugin to polyfill Object.assign(), as suggested in #611.

19.0.3

  • Files .eslintrc.json, LICENSE, CHANGELOG.md, CODE_OF_CONDUCT.md, README.md, package.json are now included in the package

19.0.1

  • Restored compatibility for bundlers that used this module, see #609

Thanks to @erikyo for #610

19.0.0

  • Rollup setup enhancement
    • Refactored the Rollup setup to improve performance and maintainability.
    • Switched to ES6 module format for better compatibility and readability.
    • Enabled tree shaking and module preservation to optimize the build output.
  • Added ESM demo to showcase the functionality of the esm module.
  • Updated various dependencies to their latest versions for better compatibility and security
  • Removed AMD module from the /dist folder, as it's been unused since version 11
  • Removed AMD-related demos

Thanks to @erikyo for #607

18.0.0

1 month ago

Version 18.0.0

  • Dropped support for Internet Explorer 11
  • Modernized code
  • Smaller file

17.9.0

1 month ago

17.9.0

  • Allowing to pass empty string ("") 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.

17.8.2

2 years ago

17.8.2

  • Fixed a bug which occurred if the network connection went off and on again after a LazyLoad instance was destroyed

17.8.1

  • Updated Typescript typings

17.8.0

  • Added the ability to lazyload background images with CSS image-set() via data-bg-set

17.8.1

2 years ago

17.8.1

  • Updated Typescript typings

17.8.0

  • Added the ability to lazyload background images with CSS image-set() via data-bg-set.

17.8.3

2 years ago

17.8.8

  • Fixed dependency issues detected by npm audit

17.8.5

  • Improved callbacks check by introducing type check (must be function)

17.8.4

  • Updated link to demos in the documentation.

17.8.3

  • Fixed callback_error in background images demos, like suggested in #573. Thanks to @Soul244.

17.8.2

  • Fixed a bug which occurred if the network connection went off and on again after a LazyLoad instance was destroyed

17.8.1

  • Updated Typescript typings

17.8.0

  • Added the ability to lazyload background images with CSS image-set() via data-bg-set

17.7.0

2 years ago

17.7.0

  • Added the new option restore_on_error to restore original attributes on error.

17.6.1

2 years ago

17.6.1

  • Removed nasty "debugger" from code (sorry about that rookie mistake!)

17.6.0

  • Added ability to lazily load the <object> tag, as requested in #177. Useful to lazily load animated SVGs.