From d3aa8982bfb70cda8d04130347e2a870aebd2d19 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 9 Oct 2026 03:40:03 +0300 Subject: New blog post and a bunch of unrelated website changes --- public/my_uptime.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'public/my_uptime.js') diff --git a/public/my_uptime.js b/public/my_uptime.js index 25f549a..1fdb457 100644 --- a/public/my_uptime.js +++ b/public/my_uptime.js @@ -13,6 +13,7 @@ async function updateUptime() { } // Run on page load after all DOM elements loaded -DOMContentLoaded(updateUptime()); - -setInterval(updateUptime, 5 * 1000); // in ms +document.addEventListener("DOMContentLoaded", () => { + updateUptime(); + setInterval(updateUptime, 5 * 1000); // in ms +}); -- cgit v1.3.1