echo icon indicating copy to clipboard operation
echo copied to clipboard

Not all images are shown

Open ChristianGiupponi opened this issue 10 years ago • 0 comments

I have add data-echo to all my images but most of the time just the first image is shown while the other still show the loader.

This is my html:

<div class="image">
    <img src="img/loader-img.gif" data-echo="img/example.jpg" alt="title">
</div>

and this is my code:

echo.init({ 
        offset: 100, 
        throttle: 250, 
        unload: false, 
        callback: function (element, op) { 
            $(element).parent().closest('div').addClass('imgLiquidFill imgLiquid');
            $(".imgLiquidFill").imgLiquid(); 
        } 
     }); 

the callback are called just once, so only the first element will add the imgLiquid class.
How can I solve?

ChristianGiupponi avatar Sep 03 '15 08:09 ChristianGiupponi