DEV Community

Discussion on: createImageBitmap polyfill for Safari and Edge

Collapse
 
aeisenberg profile image
Andrew Eisenberg

Thanks for this it's useful for me. However, every time you are finished with a url created by URL.createObjectURL, you need to call URL.revokeObjectURL.

Not exactly sure the best way around this. And the memory leak is only important if you are creating many image bitmaps. Though it is an important thing to know.