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

lazyvids

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lazyvids - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

package.json
{
"name": "lazyvids",
"version": "0.0.3",
"version": "0.0.4",
"description": "A small utility to lazy-load autoplay HTML5 videos once they enter the viewport.",

@@ -5,0 +5,0 @@ "main": "dist/lazyvids.js",

@@ -25,3 +25,3 @@ # lazyvids.js

2. Add `preload="metadata"` or `preload="none"` to the `<video>` to prevent the browser from downloading it when out of view.
2. Add `preload="none"` to the `<video>` to prevent the browser from downloading it when out of view. `preload="metadata"` is preferred, but does not work as it should in Safari (🙄).

@@ -28,0 +28,0 @@ 3. It's best practice to also include `muted` and `playsinline` attributes, but the library will add them by default.

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