TIL: canvas.toBlob() is the right API for exporting Canvas content
toDataURL() blocks the main thread. toBlob() is async, integrates with the File API, and produces a proper binary Blob — use it for anything the user will download or share.
Read article →