diff --git a/src/components/views/messages/TextualBody.js b/src/components/views/messages/TextualBody.js index 6bc81fa5f5..e32f8b11e0 100644 --- a/src/components/views/messages/TextualBody.js +++ b/src/components/views/messages/TextualBody.js @@ -114,6 +114,7 @@ export default class TextualBody extends React.Component { const codes = ReactDOM.findDOMNode(this).getElementsByTagName("code"); if (codes.length > 0) { // Do this asynchronously: parsing code takes time and we don't + // need to block the DOM update on it. setTimeout(() => { if (this._unmounted) return; for (let i = 0; i < codes.length; i++) {