diff --git a/themecustoms/Color/DarkMode.php b/themecustoms/Color/DarkMode.php
index 3a94ab3..0df578f 100644
--- a/themecustoms/Color/DarkMode.php
+++ b/themecustoms/Color/DarkMode.php
@@ -132,7 +132,7 @@ private function js()
addJavaScriptVar('smf_theme_colormode', $context['theme_colormode'], true);
// Load the javascript file
- loadJavascriptFile('custom/dark.js', ['async' => true, 'defer' => true, 'minimize' => true,],'smf_darkmode');
+ loadJavascriptFile('custom/dark.js', ['async' => false, 'defer' => true, 'minimize' => true,],'smf_darkmode');
}
/**
diff --git a/themecustoms/Color/Variants.php b/themecustoms/Color/Variants.php
index a43528d..56a0b71 100644
--- a/themecustoms/Color/Variants.php
+++ b/themecustoms/Color/Variants.php
@@ -147,7 +147,7 @@ private function js() : void
addJavaScriptVar('smf_theme_variant', $context['theme_variant'], true);
// Load the javascript file
- loadJavascriptFile('custom/variants.js', ['async' => true, 'defer' => true, 'minimize' => true,], 'smf_variants');
+ loadJavascriptFile('custom/variants.js', ['async' => false, 'defer' => true, 'minimize' => true,], 'smf_variants');
}
/**
diff --git a/themecustoms/Theme/Compat.php b/themecustoms/Theme/Compat.php
index 5de851f..9c0e11d 100644
--- a/themecustoms/Theme/Compat.php
+++ b/themecustoms/Theme/Compat.php
@@ -79,7 +79,7 @@ public function sceditor(array &$sce_options) : void
$sce_options['style'] = $settings['theme_url'] . '/css/compat/index.css"/>