mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 17:18:39 +08:00

Syntax highlighting is a CPU-intensive process which we run a lot while rendering posts and while using the composer preview. Moving it to a background worker releases the main thread to the browser, which makes the UX much smoother.