Open billyvg opened 8 months ago
We'll potentially move the createImageBitmap call to the web worker. Further investigation needed
createImageBitmap
to web worker because:
createImageBitmap
, though probably increased memory usage Though, from looking at recent profiles, I don't see createImageBitmap
as that big of an issue -- I see more main thread blocking from toDataURL
when serializing the initial DOM snapshot. Have not gotten around to investigating that yet.
Example profile of this occurring.
We should look into moving the
createImageBitmap
call into a webworker.Another task that blocks the UI is on the initial serialization snapshot. rrweb calls
toDataURL()
on the canvas in the main UI thread to export as an image.