UNPKG

lazy-image-webcomponent

Version:

This component is a simple method to lazy load images from a source set similar to responsive images. The component calculates the rendered image width and then fetches the optimal image.

38 lines (37 loc) 1.01 kB
{ "name": "lazy-image-webcomponent", "version": "0.1.0", "main": "./dist/main.js", "module": "./dist/main.mjs", "files": [ "dist" ], "scripts": { "dev": "vite", "build": "vite build", "preview": "vite preview" }, "devDependencies": { "vite": "^4.1.0" }, "dependencies": { "lit": "^2.7.6", "throttle-debounce": "^5.0.0" }, "description": "This component is a simple method to lazy load images from a source set similar to responsive images. The component calculates the rendered image width and then fetches the optimal image.", "repository": { "type": "git", "url": "git+https://github.com/MatsCornegoor/lazy-image-webcomponent.git" }, "keywords": [ "lazyloading", "webcomponent", "imageloader" ], "author": "Mats Cornegoor", "license": "ISC", "bugs": { "url": "https://github.com/MatsCornegoor/lazy-image-webcomponent/issues" }, "homepage": "https://github.com/MatsCornegoor/lazy-image-webcomponent#readme" }