Explorar o código

HUE-7800 [core] Remove Flash of Unstyled Content in loading the apps

Enrico Berti %!s(int64=7) %!d(string=hai) anos
pai
achega
e014b3f
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      desktop/core/src/desktop/templates/hue.mako

+ 1 - 2
desktop/core/src/desktop/templates/hue.mako

@@ -983,12 +983,11 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
                     }
                     $('#embeddable_' + app).html($rawHtml);
                     huePubSub.publish('app.dom.loaded', app);
-
+                    self.isLoadingEmbeddable(false);
                   });
                 } else {
                   window.location.href = baseURL;
                 }
-                self.isLoadingEmbeddable(false);
               },
               error: function (xhr) {
                 console.error('Route loading problem', xhr);