From 787a2d3e36ea21170223c84d46f1098c8113e9c3 Mon Sep 17 00:00:00 2001 From: John Donaldson Date: Tue, 2 Oct 2018 09:00:13 -0500 Subject: [PATCH] Updating calling convention --- res/scoreboard-all.html | 4 ++-- res/scoreboard-timeline.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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);