I am trying to embed a vega-lite chart with the template node. But it seems there is a problem with loading multiple dependencies, which depend on each other.
Specifically:
<script src="https://cdn.jsdelivr.net/npm/vega@5.28.0"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-lite@5.18.1"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-embed@6.25.0"></script>
The second file fails - presumably, because the first is not loaded yet, when it is loaded itself. Is there any way to control this better?
The "setInterval" trick works fine for one external dependency, but I hope I don't have to inject the scripts myself, after giving each time to load?