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

@area17/a17-lazyload

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@area17/a17-lazyload - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

8

changelog.md

@@ -7,6 +7,10 @@ # A17 Lazy Load Change Log

- initial release
* initial release
## 0.1.1
- Safari doesn't always auto play videos with `autoplay` after the `src` has been added - forcing it to play the video
* Safari doesn't always auto play videos with `autoplay` after the `src` has been added - forcing it to play the video
## 0.1.2
* Safari doesn't always auto play videos with `autoplay` after the `src` has been added. Added an option to force auto play of these videos by replacing the node *this will cause any event listeners on the video to fail*

@@ -9,2 +9,3 @@ (function () {

maxFrameCount: 10, // 60fps / 10 = 6 times a second
forceAutoplayVideoPlay: true, // forces a lazy loaded `autoplay` video to play
};

@@ -96,5 +97,8 @@

}
if (autoplay) {
if (options.forceAutoplayVideoPlay && autoplay && el.paused) {
try {
el.play();
el.load();
if (el.paused) {
el.outerHTML = el.outerHTML;
}
} catch(err) {

@@ -101,0 +105,0 @@ }

{
"name": "@area17/a17-lazyload",
"description": "A simple, tiny, no dependency, lazy loader - by A17",
"version": "0.1.1",
"version": "0.1.2",
"license": "MIT",

@@ -6,0 +6,0 @@ "main": "./dist/a17-lazyload.js",

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