non blocking status loading

This commit is contained in:
Simon
2026-06-24 20:48:49 +00:00
parent b931765c06
commit 455e5cf8d8
2 changed files with 114 additions and 33 deletions

View File

@@ -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();