highlight code fails when main language loads before required languages
peterpeterparker opened this issue · 0 comments
peterpeterparker commented
Affected part of DeckDeckGo
- Web Components
Reproduction
Steps to reproduce:
- highlight code with
tsx
defined as lang
Expected Behavior
No loading errors.
Actual Behavior
The component fails time to time when loading the main language (tsx
) is faster than its required languages (typescript
and jsx
).
It seems that the required should be loaded first and, only when finished, then the main scripts should be loaded.