diff --git a/src/client/app/composables/head.ts b/src/client/app/composables/head.ts index d52d3986..ee8fd602 100644 --- a/src/client/app/composables/head.ts +++ b/src/client/app/composables/head.ts @@ -61,6 +61,10 @@ function createHeadElement([tag, attrs, innerHTML]: HeadConfig) { if (innerHTML) { el.innerHTML = innerHTML } + if (tag === 'script' && !attrs.async) { + // async is true by default for dynamically created scripts + ;(el as HTMLScriptElement).async = false + } return el }