From f0ca1ac88879d6cd3ca523d041e17965a273fc5d Mon Sep 17 00:00:00 2001 From: rugk Date: Tue, 22 Oct 2024 22:20:49 +0000 Subject: [PATCH] fix: also loaad dark-mode switch defer'Ed to make it load correctly (async fails on WebKIt) --- tpl/bootstrap5.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpl/bootstrap5.php b/tpl/bootstrap5.php index bf6e28d5..92fc8ace 100644 --- a/tpl/bootstrap5.php +++ b/tpl/bootstrap5.php @@ -42,7 +42,7 @@ endif; _scriptTag('js/base-x-4.0.0.js', ''); ?> _scriptTag('js/rawinflate-0.3.js', ''); ?> _scriptTag('js/bootstrap-5.3.3.js', 'async'); ?> - _scriptTag('js/dark-mode-switch.js', 'async'); ?> + _scriptTag('js/dark-mode-switch.js', 'defer'); ?>