jQuery 延迟加载图像插件的建议
我正在寻找最流行且有效的 jQuery 延迟加载图像插件,该插件通常会在每页上支持大量图像。
我尝试过以下插件:
- http://www.appelsiini.net/projects/lazyload
- http://code.google.com/p/jquery-appear/< br> - http://developer.yahoo.com/yui/imageloader/
它们都不适合我的需要。第一个没有按预期工作,第二个使服务器因请求而超载,第三个无法运行。我知道,最后一个不是 jQuery,但我很绝望。
如果有人能提出任何建议,我将不胜感激。
UPD:
奥凯,我的错。第一个插件按照描述的方式工作,但它仍然会随着所需图像数量而变慢。
I'm in search of most popular and working lazy loading images
plugin for jQuery which would normally sustain large amounts of images per page.
I have tried following plugins:
- http://www.appelsiini.net/projects/lazyload
- http://code.google.com/p/jquery-appear/
- http://developer.yahoo.com/yui/imageloader/
Non of them suites my needs. First didn't work as it should, second overloads server with requests, third couldn't get running. I know, that last one isn't jQuery, but I was desperate.
Would be really appreciated if anyone could suggest anything.
UPD:
Okei, my mistake. First plugin works as it is described, but it still works to slow with needed amount of images.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我尝试过 Andrew 提到的插件(JAIL 又名 JqueryAsynchImageLoader),它运行良好,而且非常简单使用。默认情况下,您必须使用
data-href
属性来存储实际图像。之后,您只需调用$("#yourdiv").asynchImageLoader()
即可启用异步图像加载。就这样。I have tried the plugin Andrew mentions (JAIL a.k.a. JqueryAsynchImageLoader) and it works well, and is very easy to use. By default you have to use the
data-href
attribute to store your actual image. Afterwards you simply call$("#yourdiv").asynchImageLoader()
to enable asynchronous image loading. That's all.这个插件可能适合。
它似乎正在积极开发中,但我还没有尝试过。
它确实需要您对 HTML IMG 标签进行更改。
http://www.sebastianoarmelibattana.com/projects/jail
this plugin might suit.
It appears to be in active development, but I have not tried it out yet.
it does require you to make changes to the HTML IMG tags.
http://www.sebastianoarmelibattana.com/projects/jail