NuxtImg first loads the optimized picture (good)... but then loads the source too, why?
<NuxtImg
src="hero.jpeg" alt="stuff" format="webp"
sizes="100vw sm:50vw md:768px lg:1024px xl:1280px 2xl:1536px" quality="80"
class="absolute w-full h-full object-cover" placeholder />
What am I doing wrong here? Why does it load the source image after loading the optimized version?
1 Reply
yes this happens in prod
oh sorry, I found it! I had completely forgotten I used the same picture in a component as a fall back, and never optimized it
now it shouldn't have loaded at all, but it's useless anyway so just deleted that from my code
definitely nothing to do with NuxtImage