From 461a5b001d29f95169f60fe28bc610e3f6e8fd66 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sat, 12 Oct 2024 17:15:11 +0530 Subject: [PATCH] fix(client): wrong script async check --- src/client/app/composables/head.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/app/composables/head.ts b/src/client/app/composables/head.ts index 708c16eb42bf..f0296b185ae5 100644 --- a/src/client/app/composables/head.ts +++ b/src/client/app/composables/head.ts @@ -87,7 +87,7 @@ function createHeadElement([tag, attrs, innerHTML]: HeadConfig) { if (innerHTML) { el.innerHTML = innerHTML } - if (tag === 'script' && !attrs.async) { + if (tag === 'script' && attrs.async == null) { // async is true by default for dynamically created scripts ;(el as HTMLScriptElement).async = false }