non blocking status loading
This commit is contained in:
@@ -34,6 +34,12 @@ window.App = window.App || {};
|
||||
|
||||
await App.videos.loadVideos();
|
||||
App.favorites.syncButtons();
|
||||
|
||||
// The UI above is rendered entirely from the last known status cached in
|
||||
// localStorage, so startup never blocks on (or breaks because of) a slow
|
||||
// or failing status endpoint. Now fetch fresh status in the background and
|
||||
// reconcile the UI with whatever comes back.
|
||||
App.storage.refreshServerStatusInBackground();
|
||||
}
|
||||
|
||||
initApp();
|
||||
|
||||
Reference in New Issue
Block a user