فهرست منبع

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

Enrico Berti 7 سال پیش
والد
کامیت
e014b3f
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  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);