延迟加载图像进入视口时加载图像 [英] Lazy load images when they come into the viewport
本文介绍了延迟加载图像进入视口时加载图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我最近一直在浏览博客/网站,只会在滚动到可见视口时加载图片。它然后淡入它们。是否有一个jQuery ...甚至Wordpress插件这样做?
I've been coming across blogs/websites lately that only load images when they are scrolled into the visible viewport. It then fades them in. Is there a jQuery ... even Wordpress plug-in that does this?
推荐答案
关于JavaScript的一个好处是你可以查看源代码并查看最新情况。查看源代码后,我发现了这一点:
One of the good things about JavaScript is you can view source and look at whats going on. After viewing the source I found this:
http ://www.appelsiini.net/projects/lazyload
这篇关于延迟加载图像进入视口时加载图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文