From e1782d094db20e842e8131271fd53f5fe9d31454 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Fri, 22 Dec 2023 15:10:21 +1100 Subject: [PATCH] Ensure plugin scripts are loaded in correct order (#4388) --- ui/v2.5/src/hooks/useScript.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/v2.5/src/hooks/useScript.tsx b/ui/v2.5/src/hooks/useScript.tsx index adcbc5488..652ae2db6 100644 --- a/ui/v2.5/src/hooks/useScript.tsx +++ b/ui/v2.5/src/hooks/useScript.tsx @@ -14,6 +14,7 @@ const useScript = (urls: string | string[], condition?: boolean) => { const script = document.createElement("script"); script.src = url; + script.async = false; script.defer = true; return script; });