lazyload
lazyload copied to clipboard
Problem with jQuery v1.12.3
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.
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.
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.