From 13c6631e80d36e03a6e3ec27157cc64533dce2b7 Mon Sep 17 00:00:00 2001 From: metonym Date: Wed, 7 Aug 2024 08:43:53 -0700 Subject: [PATCH] Load scripts async --- docs/index.html | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/docs/index.html b/docs/index.html index f928ffd4..ca4cc395 100644 --- a/docs/index.html +++ b/docs/index.html @@ -11,7 +11,10 @@ if (["white", "g10", "g80", "g90", "g100"].includes(theme)) { document.documentElement.setAttribute("theme", theme); - document.documentElement.style.setProperty("color-scheme", ["white", "g10"].includes(theme) ? "light" : "dark"); + document.documentElement.style.setProperty( + "color-scheme", + ["white", "g10"].includes(theme) ? "light" : "dark" + ); } } catch (e) {} @@ -20,32 +23,35 @@ + async + src="https://1.www.s81c.com/common/carbon-for-ibm-dotcom/tag/v1/latest/footer.min.js" + > + async + >