Is there a way to control where content is placed in the <head>
with include-in-header
?
#8694
Unanswered
jakoblistabarth
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Did you modify the HTML produced to confirm that the issue is the position in the header? Since your code is not self-contained and not reproducible, I cannot help much more here. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I am trying to load a third party
js
library from a cdn for a document with html output. This library needsimportmaps
. Which I can add like this:If I add the
importmaps
to the document via theinclude-in-header
option it has no effect: it is placed – as defined in the documentation – at the end of the header. Hence, it is inserted only after other<script type="module">
(e.g. thequarto-ojs-runtime.js
, which I would like to use in then document, so disabling it is not an option). Apparently, this makes the import map invalid.Is there any way to place a text string before the script tags added by quarto (like the ojs-runtime), so that the
importmaps
are working?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions