Suppose I have a list of 500 thumbnails followed by a name. How to load images as the user scrolls? (Jquery)

In mobile mode, the Internet is slow. If I have a list of 500 images, this will be downloaded forever. I would like to load the name of the image in the list, but as the user scrolls, I want to start uploading / downloading the tag <img>. How to use javascript / jquery for this?

+1
source share
3 answers

Try a look at this jQuery plugin:

Lazy Loading

+1
source

The Lazy Load plugin for jQuery should do what you need. http://www.appelsiini.net/projects/lazyload

0

Now, see Make images download when they enter the visible section of the browser? ; apparently lazyload is no longer working or is no longer available, but it gives other substitutes.

0
source

Source: https://habr.com/ru/post/1794791/


All Articles