Chrome slow to upload in topic with many images

Looking at the backtrace it looks like a bug here:

But all the time is being spent here:

This is super confusing though, why would insertText suddenly get so slow, this certainly feels like a chrome bug.

Will ping a few team members in case they have ideas.

Could this be a chrome extension, if you run chrome in safe mode does the issue persist?