A Vue.js plugin for lazyload your Image or Component in your application.
add:
add event for touch devices @RobinCK add image load performance output
fix document undefined for SSR @rdunk
fix: window is not defined in SSR @imcvampire add: srcset support
fix: issue#89 add: lazyload component (beta)
new listener instance fix: rerender image when binding value update
add: image src filter fix: issue#72
add: Customise Events to Listen To @darrynten
fix: issue#65: v-lazy:background-image
conflict with :style
@thkdog
add: Individually error && loading assets
you can set loading and error placeholder of any images
data: {
imgObj: {
src: 'http://xx.com/logo.png',
error: 'http://xx.com/error.png',
loading: 'http://xx.com/loading-spin.svg'
}
}
<img v-lazy="imgObj" />
version 0.7.5