As you may notice by the way, the classes aren’t even really needed…
I also put the
each loops before the
imagesLoaded. They are synchronous so the plugins won’t ever be initiated before the
data-src are attached. The
imagesLoaded might otherwise fire before that has happened because up to that point only a single image is loaded for all the links that were created. There won’t be much loading time to expect.