npm install --save vue-lazyloadimg
import vue-lazyloadimg
import vueLazyImg from 'vue-lazyloadimg';
import vue from 'vue';
vue.use(vueLazyImg);
module read class lazyimg
and cache to onscroll event.
<img src="{{'1x1 transform png'}}" :data-src="{{need load img url}}" class="lazyimg" alt="">
use babel.