update minidashboard immediately after DOM is ready
diff --git a/planetstack/core/static/page_analytics.js b/planetstack/core/static/page_analytics.js
index 5f65fb2..065af59 100644
--- a/planetstack/core/static/page_analytics.js
+++ b/planetstack/core/static/page_analytics.js
@@ -67,8 +67,6 @@
setTimeout(updatePageAnalytics, 30000);
}
-setTimeout(updatePageAnalytics, 5000);
-
// ----------------------------------------------------------------------------
// bandwidth
@@ -98,5 +96,8 @@
setTimeout(updatePageBandwidth, 30000);
}
-setTimeout(updatePageBandwidth, 5000);
+$( document ).ready(function() {
+ updatePageAnalytics();
+ updatePageBandwidth();
+});