I have implemented lazyload on my website, but i found that sidebar image is not loading until full page scroll. Because sidebar HTML code is footer and CSS is used to display that in sidebar.

Is there a way i can do something to show sidebar image without full scroll, for example after a little scroll

Test page : http://www.pricingindia.in/mobile/nokia-lumia-1320-price-80950

有帮助吗?

解决方案

Bind the plugin separately to main content and sidebar. Something like:

$("#ProductPrice img.lazy").lazyload({
    effect: "fadeIn"
});

$("ul.listview img.lazy").lazyload({
    effect: "fadeIn"
});
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top