diff --git a/public/views/index.template.html b/public/views/index.template.html
index ced39d9af28..8b6d6a0775c 100644
--- a/public/views/index.template.html
+++ b/public/views/index.template.html
@@ -14,6 +14,9 @@
+
+
+
@@ -253,14 +256,7 @@
navTree: [[.NavTree]]
};
- // load css async
- var myCSS = document.createElement("link");
- myCSS.rel = "stylesheet";
- myCSS.href = "public/build/grafana.[[ .Theme ]].css?v[[ .BuildVersion ]]+[[ .BuildCommit ]]";
-
- // insert it at the end of the head in a legacy-friendly manner
- document.head.insertBefore(myCSS, document.head.childNodes[document.head.childNodes.length - 1].nextSibling);
- // switch loader to show all has loaded
+ // In case the js files fails to load the code below will show an info message.
window.onload = function() {
var preloader = document.getElementsByClassName("preloader");
if (preloader.length) {