lazyload icon indicating copy to clipboard operation
lazyload copied to clipboard

Problem with jQuery v1.12.3

Open mnajafzadeh opened this issue 8 years ago • 2 comments

It has problem with jQuery v1.12.3 When you filter images on your site, the lazyload does not swap data-original with src anymore.

mnajafzadeh avatar May 09 '16 11:05 mnajafzadeh

Hi @mnajafzadeh, try this https://github.com/verlok/lazyload - it's a version of this plugin which is jQuery indipendente, so no matter what version of jQuery you use, it will work.

verlok avatar Jun 21 '16 21:06 verlok

I fixed the issue by doing some changes in source code.

            /* If no src attribute or background-image style given use data:uri. */
            if ($self.is("img")) {
                if ($self.attr("src") === undefined || $self.attr("src") === false) {
                    $self.attr("src", settings.placeholder);
                }
            } else {
                if ($self.css("background-image") === "none" || $self.css("background-image") === false) {
                    $self.css("background-image", "url('" + settings.placeholder + "')");
                }
            }

Thank you.

mnajafzadeh avatar Jul 06 '16 07:07 mnajafzadeh