The lazy-load of WeChat Mini Programs's image tag does not work.

the official document says: the picture is loaded lazily. It is only valid for image under page and scroll-view. Then I only wrote a few image tags on the page, set lazy-load, and then scrolling the page didn"t feel effective. What should be the effect of lazy loading brought by Mini Program? Did mine work in the end? Ask for advice


the effect is usually not felt, when the network is very slow, it is obvious that the picture is blank when scrolling down, and it will take a while to come out.

I use it very well in scroll-view. Without scroll-view, it doesn't seem to work.

I don't understand the official instructions very much. The outermost layer of every page is page. Where else can image be if it's not in page?

lz can be tested with larger pictures, such as 4 or 5m pictures taken by mobile phones.

Open the page and wait more than ten seconds, then scroll down.

if lazy-load takes effect, you should see the blank image load slowly; if it doesn't, you will see the picture directly.

it is important to note that lazy-load will load two or three more images in order to improve the user experience. If you scroll slowly, you can't see the effect.

it's a pity that Network can't see the records loaded by image resources in Mini Program's IDE. Otherwise, you can verify lazy-load. in Network

.

what is your expected effect and actual effect?


Mini Program lazy loading needs to start loading when the picture enters a certain range (three screens up and down). This means that when your images are less than three screens, such as when all the images are not loaded at first, the image nodes are in the visual range, which is likely to be loaded all at once.
you can set a large blank node in the visual range to "squeeze" all the image nodes out of the visual range, and then see if there is lazy loading.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3c5e7-4469a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3c5e7-4469a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?