lazy loading images include bg-image for mobile first. plus: you can add any image to be lazy loaded dynamically!
<script src="/path/to/ImgLazyload.js"></script>
//init
var oLazyload = new LazyLoad({
"threshold" :100,
"throttle_delay": 200
});
//after a template created
oLazyload.run(document.querySelector('#imageContiner1Id'))
//afet another template created
oLazyload.run(document.querySelector('#imageContiner2Id'))
MIT