Open jasomdotnet opened 5 years ago
Yes it should;
<div class="lazyload" style="background-image: url('thumbnail.jpg')" data-src="original.jpg" />
This works good
<div class="lazyload" style="background-image: url('thumbnail.jpg')" data-original="original.jpg" />
While original.jpg
is being loaded, thumbnail.jpg
becomes invisible, causing a blank space in its place. Any idea how to overcome this?
I guess it is the way it works. Just try to decrease load time of an original image.
这并不能实现背景图片的需求,因为他 style="background-image: url('thumbnail.jpg')"消失的太快,data-original="original.jpg" 还没加载结束,第一张图就消失了。导致第二张图的加载过程显示出来。从上到下一横一横的加载,加载表现和img标签的方式不一样,请问怎么改善
Hi, this doesnt work, what am i doing wrong? thumbnail.jpg will not be replaced at all.
Does 'lazyload' support lazyloading of background images (css), like bLazy, for example? What about iframes?