Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Run highlight.js asynchronously #527

Merged
merged 1 commit into from
Oct 27, 2016
Merged

Run highlight.js asynchronously #527

merged 1 commit into from
Oct 27, 2016

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Oct 26, 2016

Move the very minimal logic of highlightDOM into TextualBody
because then we can avoid scheduling a lot of timeouts which
would ultimately do nothing (ie. any messages that don't have code
blocks).

This makes code blocks initially render unhighlighted and then 'pop' into colour slightly after switching rooms or the message appears. Personally I think this is probably OK?

Move the very minimal logic of highlightDOM into TextualBody
because then we can avoid scheduling a lot of timeouts which
would ultimately do nothing (ie. any messages that don't have code
blocks).
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dbkr dbkr merged commit a53c195 into develop Oct 27, 2016
@richvdh richvdh deleted the dbkr/highlight_async branch February 15, 2017 13:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants