From a52d1e5f76678eedb6d9354a4fc6eb3bea131964 Mon Sep 17 00:00:00 2001 From: Itziar ZG <70289074+itziarZG@users.noreply.github.com> Date: Sun, 22 Mar 2026 19:56:48 +0100 Subject: [PATCH] Update js/main.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/main.js b/js/main.js index 000feb5..6d1d1ba 100644 --- a/js/main.js +++ b/js/main.js @@ -102,6 +102,6 @@ document.addEventListener("keydown", function (event) { }); /** - * Initialize theme when DOM is ready + * Initialize theme as early as possible */ -document.addEventListener("DOMContentLoaded", initTheme); +initTheme();