vue-dom-lazy-load

1.0.0 • Public • Published

为了提升页面响应速度,优化用户体验,可以适当的减轻页面首次加载的压力,把不在可视区的部分,进行懒加载。
In order to improve the page response speed and optimize the user experience, it can properly reduce the pressure of the first loading of the page, and lazily load the part not in the visual area.
https://img.shields.io/npm/v/vue-dom-lazy-load.svg?label=vue-rescroll 总下载量

安装/Install

npm install vue-dom-lazy-load --save

使用/Use

main.js

import VueDomLazyLoad from 'vue-dom-lazy-load';
Vue.use(VueDomLazyLoader);

*.vue

使用默认配置/use default config
<img :src="baseUrl" v-dom-lazy-load />

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i vue-dom-lazy-load

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    126 kB

    Total Files

    17

    Last publish

    Collaborators

    • vitaminaq