开发者

can you use jquery lazyload on all images (not just ones out of view)

开发者 https://www.devze.com 2023-01-03 04:15 出处:网络
i have a webpage with a lot of images (photo album).I am using lazyloading jquery plugin which is great to only load the images out of browser view when i scroll down.

i have a webpage with a lot of images (photo album). I am using lazyloading jquery plugin which is great to only load the images out of browser view when i scroll down.

The one issue i have is that i want the loading icon to show up first on images loading IN the current view as well as some of them are big images and they show up with that bad browser "image not loaded yet" icon un开发者_Python百科til they download. I don't see any property on this plugin to support this for both in view and for scrolling.

does anyone know if this is possible?


I have been playing with the plugin in my own webpage. In plugin description there is also the timeout function that is actually the behaviour you want.

Check the demo page at http://www.appelsiini.net/projects/lazyload/enabled_timeout.html

If you need further help, please comment.


The demo page of link textlazyloading jquery plugin doesn't wprk in FF3.6.

You can check out this plugin called JAIL that works perfectly (there are few examples). I suggest to keep the Net tab of Firebug open when you open the examples pages.

0

精彩评论

暂无评论...
验证码 换一张
取 消