diff --git a/res/scoreboard-all.html b/res/scoreboard-all.html
index dd870d6..e8f38c7 100644
--- a/res/scoreboard-all.html
+++ b/res/scoreboard-all.html
@@ -37,8 +37,8 @@ function init() {
scoreboard(sb, true, type, interval);
}
-window.addEventListener("load", preinit);
-window.addEventListener("load", init);
+window.addEventListener("DOMContentLoaded", preinit);
+window.addEventListener("DOMContentLoaded", init);
diff --git a/res/scoreboard-timeline.html b/res/scoreboard-timeline.html
index 4de0fdf..c2d65c5 100644
--- a/res/scoreboard-timeline.html
+++ b/res/scoreboard-timeline.html
@@ -60,8 +60,8 @@ function reScoreboard()
scoreboard(sb, true, type, interval);
}
-window.addEventListener("load", preinit);
-window.addEventListener("load", init);
+window.addEventListener("DOMContentLoaded", preinit);
+window.addEventListener("DOMContentLoaded", init);