deckgo/deckdeckgo

highlight code fails when main language loads before required languages

peterpeterparker opened this issue · 0 comments

Affected part of DeckDeckGo

  • Web Components

Reproduction

Steps to reproduce:

  1. 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.

Screenshot

Capture d’écran 2021-11-12 à 14 47 23