Comparing version 0.0.3 to 0.0.4
{ | ||
"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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16177