Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vanilla-lazyload

Package Overview
Dependencies
Maintainers
1
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vanilla-lazyload - npm Package Versions

1
15

11.0.1

Diff

Changelog

Source

11.0.1

Squashed a nasty bug that occurred on IE 11 and Safari when the IntersectionObserver polyfill wasn't loaded before LazyLoad.

verlok
published 11.0.0 •

Changelog

Source

11.0.0

  • Changed bundle file name of ES Module from lazyload.es2015.js to lazyload.esm.js
  • Removed the to_webp option (see issue #288)
  • Ceased support and development of LazyLoad v.8 (see issue #306) version. If you were using it, please update your code to use callback_reveal instead.
  • Private methods like _setObserver, _onIntersection etc. are now hidden from the outside.
  • Added the auto_unobserve boolean option, see API.
  • Bugfix: loadAll() didn't unobserve elements.
  • Updated to Jest 24, Babel 7, etc.
  • Fixed dev dependencies vulnerabilities
  • Updated callbacks. See below:

Callbacks updated:

  • Changed callback_enter. This callback is now called whenever an element enters the viewport, even when load_delay is set. In previous versions, this callback was delayed until an element started loading if a load_delay was set. Note that this is a possible breaking change, which you can fix using callback_reveal instead.
  • Renamed callback_loaded is the new name of callback_load.
  • Added callback_exit. This callback is called whenever an element exits the viewport, even if a load_delay is set.
  • Added callback_reveal. This callback is called just after an element starts loading.
  • Deprecated callback_set. This callback still works*, but will be removed in the next major

* it didn't work from versions 11.0.0 to 11.0.5, it still works from 11.0.6.

Version 10

verlok
published 10.20.1 •

Changelog

Source

10.20.1

Fixed a bug for which LazyLoad didn't copy the data-sizes attribute value to sizes in source tags inside picture. See #307.

verlok
published 10.20.0 •

Changelog

Source

10.20.0

Improved WebP detection to work correctly on Firefox too, see #298.

Thanks to @ipernet for contributing.

verlok
published 10.19.1 •

Changelog

Source

10.19.1

  • Fixed build for those using React + SSR, see #287
  • TypeScript definitions clearified, see #283
  • Gulp updated to v.4.0.0 to make it work with node 10

Thanks to @AlexCSR and @muturgan for contributing.

verlok
published 8.17.0 •

Changelog

Source

8.17.0

  • Added the ability to know when all images have been downloaded through the callback_finish callback.
  • Added the file demos/print.html to demo how to print lazy images.
verlok
published 10.19.0 •

Changelog

Source

10.19.0

  • Added the ability to know when all images have been downloaded through the callback_finish callback.
  • Added the file demos/print.html to demo how to print lazy images.
verlok
published 8.16.0 •

Changelog

Source

8.16.0

Added the ability to have multiple background images, through the new data_bg option.

verlok
published 10.18.0 •

Changelog

Source

10.18.0

Added the ability to have multiple background images, through the new data_bg option.

verlok
published 10.17.0 •

Changelog

Source

10.17.0

Added the ability to set different thresholds for the scrolling area, through the new thresholds option.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc