Lazy loading images how

后端 未结 6 683
时光说笑
时光说笑 2020-12-05 20:47

I am developing an eshop .At products page based on category i putted some javascript based filtering. However a problem arises if a category has a lot of products. This lin

6条回答
  •  误落风尘
    2020-12-05 21:10

    If you simply wish to load the images slowly and the rest of the page gets loaded first, you can put the images as background and not use the tag. If you use the tag, the image is loaded at the time of loading the page and so the page load becomes slow. However, the background images loads after the page is shown to the user. The user can read the text and see the images loading after some time.

提交回复
热议问题