desandro / imagesloaded

:camera: JavaScript is all like "You images done yet or what?"

Home Page:https://imagesloaded.desandro.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

willryanuk opened this issue · comments

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!

Closing this one as no one else chimed in.