diff options
| author | Shpuld Shpuldson <shp@cock.li> | 2020-06-27 12:32:01 +0300 |
|---|---|---|
| committer | Shpuld Shpuldson <shp@cock.li> | 2020-06-27 12:32:01 +0300 |
| commit | a8cb5e71d9ab3025786838d7123ad676a1e7fb66 (patch) | |
| tree | 1cba7587a354270ea3ab9df019722c13ac2b5398 | |
| parent | 5ab62c4cb8bc2ccf718d0b60749bcc03fba54784 (diff) | |
don't block ui with stickers or tos
| -rw-r--r-- | src/boot/after_store.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/boot/after_store.js b/src/boot/after_store.js index 01074b8c..de7c3ef4 100644 --- a/src/boot/after_store.js +++ b/src/boot/after_store.js @@ -340,17 +340,18 @@ const afterStoreSetup = async ({ store, i18n }) => { } // Now we can try getting the server settings and logging in + // Most of these are preloaded into the index.html so blocking is minimized await Promise.all([ checkOAuthToken({ store }), - getTOS({ store }), getInstancePanel({ store }), - getStickers({ store }), getNodeInfo({ store }), getInstanceConfig({ store }) ]) // Start fetching things that don't need to block the UI store.dispatch('fetchMutes') + getTOS({ store }) + getStickers({ store }) const router = new VueRouter({ mode: 'history', |
