vue-lazyload
vue-lazyload copied to clipboard
v-lazy fires twice
I am using the v-lazy on the <img>
element.
Lazy load works fine, however, the issue is the request fires twice?
import VueLazyload from 'vue-lazyload'; Vue.use(VueLazyload, { attempt: 1, preLoad: 1 }); <img v-lazy="'{{asset('/images/svg/personalise.svg')}}'" class="lazy" alt="Personalise Icon">
I am using this inside the Blade file in the Laravel project.

i am also has this issue
Same here, did anyone find a solution?
Same issue for me, kind of makes this plugin a bit useless.
Same issue here
Same issue here,
Same here
I'm having the same issue.
I found that if the disabled cache was turned on, there would be two requests. Disabled this option won't have this problem.
Turn on Disable cache
:
Turn off Disable cache
:
While this is unlikely to be a problem in production because of browser's caching behaviour, it still should be fixed.
While this is unlikely to be a problem in production because of browser's caching behaviour, it still should be fixed.
Would you please further explain why it's unlikely to be a problem? It seems that the superfluous request does affect the performance of the website, as the Waterfall chart showed in Chrome and my test result.
While this is unlikely to be a problem in production because of browser's caching behaviour, it still should be fixed.
Would you please further explain why it's unlikely to be a problem? It seems that the superfluous request does affect the performance of the website, as the Waterfall chart showed in Chrome and my test result.
I believe the reason for the comment "unlikely to be a problem in production" is because a normal user won't be opening their dev tools and browsing with cache disabled, however as mentioned it should still be fixed. I am still experiencing this issue two years later.
Hi,
I am actually having the same issue even though I turned off "disable cache" still getting two request to same image. Any fix on this ?
I'm having the same issue,how to resolve it ?
Hi,
I am actually having the same issue even though I turned off "disable cache" still getting two request to same image. Any fix on this ?
Have you resolved it?