From 8d4864eb17949c3ee3d8396c58723ee8743fd3be Mon Sep 17 00:00:00 2001 From: DL6ER Date: Fri, 24 Mar 2017 22:01:58 +0100 Subject: [PATCH] Add delay of 0.5 sec before trying to load all data --- scripts/pi-hole/js/index.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index 366e4773..ca060818 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -64,11 +64,13 @@ function updateSummaryData(runOnce) { { // FTL was previously offline $("#temperature").text(" "); - updateQueriesOverTime(); - updateForwardedOverTime(); - updateQueryTypes(); - updateTopClientsChart(); - updateTopLists(); + window.setTimeout(function() { + updateQueriesOverTime(); + updateForwardedOverTime(); + updateQueryTypes(); + updateTopClientsChart(); + updateTopLists(); + }, 500); } }