hilongjw / vue-lazyload

A Vue.js plugin for lazyload your Image or Component in your application.
http://hilongjw.github.io/vue-lazyload/
MIT License
7.99k stars 865 forks source link

v-lazy on image load twice! #486

Open naimlatifi5 opened 2 years ago

naimlatifi5 commented 2 years ago

I just noticed that when I use v-lazy on images and when I check network img tab it loads twice. I tried to turn off option "disable cache" as someone mentioned but for me is till the same unfortunately. But if I use 'lazy-component' and have image inside it then it loads once but I would like to use v-lazy since I would like to perform some skeleton with image loading error and loaded

lecheng-lc commented 2 years ago

because first load loading-src
sencond load trueth src

ITcx1212 commented 9 months ago

because first load loading-src sencond load trueth src

I just noticed that when I use v-lazy on images and when I check network img tab it loads twice. I tried to turn off option "disable cache" as someone mentioned but for me is till the same unfortunately. But if I use 'lazy-component' and have image inside it then it loads once but I would like to use v-lazy since I would like to perform some skeleton with image loading error and loaded

Have you resolved it ?