Image preloading doesn't work on Firefox
Closed this issue · 1 comments
crisalis2 commented
Momentary flashes keep happening in Firefox. I tried with a fresh profile too. In Edge there's no problem. I'm using local files but I served them to myself via HTTP, same problem.
crisalis2 commented
I found that the only way to preload images with Firefox was to use decode() (link below). I tested decode() succesfully with other browsers too, but I read somewhere that, except for Firefox, it wasn't an optimal solution. In any case, the preload problem seems to be Firefox's rather than mokuro's, so I will close this.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/decode