dinbror / blazy

Hey, be lazy! bLazy.JS is a lightweight pure JavaScript script for lazy loading and multi-serving images. It's working in all modern browsers including IE7+.
http://dinbror.dk/blazy
MIT License
2.63k stars 355 forks source link

No image visible #160

Closed chwakil closed 6 years ago

chwakil commented 6 years ago

Hi, I am loading data dynamically from PHP server. The data is similar to:

$output .= "<div class='item'>"
                . "<img class='b-lazy' src='common_images/loader.gif' width=" . $width . " height=" . $height . " data-src='" . $src . "' alt=/>"
                . '</div>'
        ;

I am using rowgrid to display data which is with scroll bar container. After receiving data I append data like this:

$(".container").append(data); $(".container").rowGrid("appended");

Now when I do not use blazy images are displaying very well but with blazy no image is visible. Please help.

kozie commented 6 years ago

Care to share your solution since you seemed to have solved it yourself already, @chwakil ? ;)