假设我有一个500个缩略图的列表,其后是标题.当用户向下滚动时,如何加载图像? (jQuery的) [英] Suppose I have a list of 500 thumbnails followed by the title. How do I load the images as the user scrolls down? (JQuery)

查看:100
本文介绍了假设我有一个500个缩略图的列表,其后是标题.当用户向下滚动时,如何加载图像? (jQuery的)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在移动设备中,互联网速度很慢.如果我有500张图像的列表,则将需要花费很多时间来加载.我想在列表中加载图像的标题,但是随着用户向下滚动,我想开始加载/下载<img>标记.如何使用Javascript/Jquery做到这一点?

In mobile, the internet is slow. If I have a list of 500 images, this is going to take forever to load. I'd like to load the title of the image in a list, but as the user scrolls down, I want to start loading/downloading the <img> tag. How do I use Javascript/Jquery to do this?

推荐答案

尝试看看这个jQuery插件:

Try taking a look at this jQuery plugin:

延迟加载

这篇关于假设我有一个500个缩略图的列表,其后是标题.当用户向下滚动时,如何加载图像? (jQuery的)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆