问题
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?
回答1:
Try taking a look at this jQuery plugin:
Lazy Loading
回答2:
The Lazy Load Plugin for jQuery should do what you need to do. http://www.appelsiini.net/projects/lazyload
回答3:
Now, see Make images load when they enter visible section of browser?; apparently lazyload itself no longer works or is no longer available, but this gives other substitutes.
来源:https://stackoverflow.com/questions/2375703/suppose-i-have-a-list-of-500-thumbnails-followed-by-the-title-how-do-i-load-the