vanilla-lazyload
Advanced tools
Comparing version 19.0.5 to 19.1.0
{ | ||
"name": "vanilla-lazyload", | ||
"version": "19.0.5", | ||
"version": "19.1.0", | ||
"description": "LazyLoad is a lightweight (2.4 kB) and flexible script that speeds up your web application by deferring the loading of your below-the-fold images, videos and iframes to when they will enter the viewport. It's written in plain \"vanilla\" JavaScript, it leverages the IntersectionObserver API, it supports responsive images, it optimizes your website for slower connections, and can enable native lazy loading.", | ||
@@ -13,14 +13,22 @@ "main": "dist/lazyload.min.js", | ||
"@babel/preset-env": "^7.24.3", | ||
"@jest/globals": "^29.7.0", | ||
"@playwright/test": "^1.42.1", | ||
"@rollup/plugin-babel": "^6.0.4", | ||
"@rollup/plugin-node-resolve": "^15.2.3", | ||
"@rollup/plugin-terser": "^0.4.4", | ||
"@types/node": "^20.12.2", | ||
"jest": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"jest": "^29.7.0", | ||
"http-server": "^14.1.1", | ||
"rollup": "^4.13.1" | ||
}, | ||
"scripts": { | ||
"serve": "npx http-server -p 4200", | ||
"build": "rollup -c", | ||
"dev": "rollup -c --watch", | ||
"test": "jest", | ||
"devtest": "jest --watch" | ||
"test": "npm run test:unit && npm run test:e2e", | ||
"test:unit": "jest", | ||
"watch-test:unit": "jest --watch", | ||
"test:e2e": "playwright test", | ||
"test-watch:e2e": "npx playwright test --ui" | ||
}, | ||
@@ -27,0 +35,0 @@ "files": [ |
@@ -179,3 +179,3 @@ LazyLoad is a lightweight (2.4 kB) and flexible script that **speeds up your web application** by deferring the loading of your below-the-fold images, animated SVGs, videos and iframes to **when they will enter the viewport**. It's written in plain "vanilla" JavaScript, it leverages the [IntersectionObserver](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) API, it supports [responsive images](https://alistapart.com/article/responsive-images-in-practice), it optimizes your website for slower connections, and can enable native lazy loading. See [all features](#-all-features-compared) for more. | ||
The latest, recommended version of LazyLoad is **19.0.5**. | ||
The latest, recommended version of LazyLoad is **19.1.0**. | ||
Note that if you need to support Internet Explorer 11, you need to use version 17.9.0 or below. | ||
@@ -190,3 +190,3 @@ | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@19.0.5/dist/lazyload.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@19.1.0/dist/lazyload.min.js"></script> | ||
``` | ||
@@ -242,3 +242,3 @@ | ||
async | ||
src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@19.0.5/dist/lazyload.min.js" | ||
src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@19.1.0/dist/lazyload.min.js" | ||
></script> | ||
@@ -277,3 +277,3 @@ ``` | ||
async | ||
src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@19.0.5/dist/lazyload.min.js" | ||
src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@19.1.0/dist/lazyload.min.js" | ||
></script> | ||
@@ -280,0 +280,0 @@ ``` |
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
160889
12