defer-image-load
v1.0.1
Published
Defer image load
Downloads
2
Readme
Defer Image Load
Usage
import deferImageLoad from 'defer-image-load'
deferImageLoad('[data-deferred-src]')
<img
src="https://site/img/low-quality-image.jpg"
data-deferred-src="https://site/real-image.jpg"
/>
Required fields
- src - low quality image source
- data-deferred-src - real image source