懒加载图像在ASP.NET [英] Lazy Load Images In ASP.NET
问题描述
我有一个包含相当多的图像股利。当我说了不少,图像的数量可能是数以百计。
I have div that contains quite a few images. When I say quite a few, the number of images could be in their hundreds.
我有一些jQuery为包含我的图片,通过所有的图像在一个旋转木马格式水平滚动DIV。
I have some jQuery for the div that contains my images to scroll through all the images horizontally in a carousel format.
我很关心,将在页面上呈现的图像我的量,我知道它会影响页面加载时间。
I am quite concerned with the amount of images I that will be rendered on the page and I know it will affect the page loading times.
我将不胜感激,如果有人可以基于什么在我的div中所示的方式告诉我懒加载我的图片。
I would be grateful if someone could show me a way to lazy load my images based on what is shown in my div.
推荐答案
看看这个延迟加载jQuery插件:
Check out this lazy loading jQuery plugin:
http://plugins.jquery.com/project/lazyload
请参阅本SO线程的更多信息:
See this SO thread for more information:
<一个href=\"http://stackoverflow.com/questions/444730/javascript-lazy-load-images-in-horizontal-div\">Javascript:懒加载图像在水平事业部?
这篇关于懒加载图像在ASP.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!