From 2ba56231a65dcd46eebd94510a458e247a9cc27a Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Wed, 11 Feb 2015 00:15:21 +0000 Subject: [PATCH] Do an initial data fetch immediately (useful if the refresh interval is long). --- public_html/script.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public_html/script.js b/public_html/script.js index aa77af3..5961087 100644 --- a/public_html/script.js +++ b/public_html/script.js @@ -291,6 +291,9 @@ function end_load_history() { window.setInterval(fetchData, RefreshInterval); window.setInterval(reaper, 60000); + // And kick off one refresh immediately. + fetchData(); + } // Initalizes the map and starts up our timers to call various functions