callmecavs / layzr.js

A modern lazy loading library for images.

Home Page:http://callmecavs.com/layzr.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle dynamically created images

pbcomm opened this issue · comments

Looks like there is no way to update the current instance if any dynamically created images were injected into the dom after instantiation.

just call the updateSelector method after you inject your images. you may also want to call the update method too, just in case an injected image is in the viewport