GoogleChromeLabs / browser-fs-access

File System Access API with legacy fallback in the browser
https://googlechromelabs.github.io/browser-fs-access/demo/
Apache License 2.0
1.38k stars 84 forks source link

Reliably dispose Blob URLs #8

Closed RReverser closed 4 years ago

RReverser commented 4 years ago

setTimeout is prone to race conditions, whereas disposing URLs when images are definitely loaded (or errored out) guarantees that URL is, indeed, no longer required.