vue3-lazy
Status: Alpha.
Lazy load plugin for Vue 3.x inspired by vue-lazyload.
This plugin support very simple options, and easy to use.
Install
$ npm install vue3-lazy -S
Usage
main.js:
const app = lazyPluginapp
template:
Lazy Options
key | description | default | options |
---|---|---|---|
error |
src of the image upon load fail | 'data-src' |
String |
loading |
src of the image while loading | 'data-src' |
String |