100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Fixed Chrome 63 changed DOM loading event order
Christian Bauer1f4e92a8d53a
diff --git a/keycloak/theme/login/template.ftl b/keycloak/theme/login/template.ftlindex e264cc733..35544284b 100755--- a/keycloak/theme/login/template.ftl+++ b/keycloak/theme/login/template.ftl@@ -44,7 +44,7 @@});</script></head>-<body class="layout vertical loading" onload="startLoading()">+<body class="layout vertical loading"><div class="flex layout vertical center-center">diff --git a/manager/client/src/main/webapp/index.html b/manager/client/src/main/webapp/index.htmlindex 32f28bd1c..1726f05b5 100644--- a/manager/client/src/main/webapp/index.html+++ b/manager/client/src/main/webapp/index.html@@ -64,7 +64,7 @@</script></head>-<body class="layout vertical loading" onload="startLoading()">+<body class="layout vertical loading"><iframe src="javascript:''"id="__gwt_historyFrame"diff --git a/manager/client/src/main/webapp/js/auth.js b/manager/client/src/main/webapp/js/auth.jsindex d846409e7..4b1f8b5a2 100644--- a/manager/client/src/main/webapp/js/auth.js+++ b/manager/client/src/main/webapp/js/auth.js@@ -63,9 +63,6 @@ window.startBasicAuthentication = function (realm, successCallback, failureCallbwindow.basicAuthUsername = username;window.basicAuthPassword = password;document.body.removeChild(authForm);- if (startLoading) {- startLoading();- }if (successCallback) {successCallback();}diff --git a/manager/client/src/main/webapp/js/loader.js b/manager/client/src/main/webapp/js/loader.jsindex 5b37f25e6..6a52e1023 100644--- a/manager/client/src/main/webapp/js/loader.js+++ b/manager/client/src/main/webapp/js/loader.js@@ -1,10 +1,6 @@window.defaultErrorMessage = "Service not available, please try again later.";-window.startLoading = function() {- console.log("Start loading...");- if (!window.document.body.classList.contains("loading")) {- window.document.body.classList.add("loading");- }+document.addEventListener("DOMContentLoaded", function () {// Need this to find out if GWT superdev compilation failed, then abort loading...window.clearInterval(window.checkGwtDebugInterval);window.checkGwtDebugInterval = window.setInterval(function() {@@ -15,7 +11,7 @@ window.startLoading = function() {window.handleLoadComplete();}}, 500);-};+});window.handleLoadError = function(reason) {console.log("Load error: " + reason);