desandro / imagesloaded

:camera: JavaScript is all like "You images done yet or what?"
https://imagesloaded.desandro.com
MIT License
8.88k stars 1.15k forks source link

Dev Tools - Disable Cache causes resource to load indefinitely (Safari and Chrome) #292

Closed willryanuk closed 2 years ago

willryanuk commented 4 years ago

When you are using Chrome Dev Tools (latest Chrome 80.0.3987.122 on OS X) with "Disable Cache", it can cause images to download multiple times.

In Safari (13.0.5 (15608.5.11 OS X), it is much worse... the callback handler: imagesLoaded(mainProductImage, mainProductImageLoaded);

is called thousands of time (actually, it is called indefinitely)...

image

As soon as you toggle off the disable cache button, the downloading/callbacks stop.

Maybe there is nothing that can be done in this case, but development wise, it is definitely a little bit confusing!

desandro commented 2 years ago

Closing this one as no one else chimed in.