tuupola/jquery_lazyload — pull request #55 by JonMcL (2012-09-24 17:18:25+00:00)
Title: Allow for only one lazyload process per image

I'm using jquery_lazyload on some images that are part of a region that gets replaced via AJAX loads. The AJAX routine already has fadeIn animation and I didn't want the images to fadeIn if they were already loaded via lazyload previously.

So I added an optional setting, only_once, and an array to track image sources. If jquery_lazyload is called on an image, but the image's true source is present in the tracking array, the source will immediately be replaced with true image source and the rest of the initialization is aborted (for that image).

Maybe others will find this setting useful?