DEV Community

createImageBitmap polyfill for Safari and Edge

Meghan (she/her) on November 07, 2017

Chris Coyier, the developer behind css-tricks.com recently tweeted: Chris Coyier @chriscoyie...
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.