aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-06-27 12:32:01 +0300
committerShpuld Shpuldson <shp@cock.li>2020-06-27 12:32:01 +0300
commita8cb5e71d9ab3025786838d7123ad676a1e7fb66 (patch)
tree1cba7587a354270ea3ab9df019722c13ac2b5398
parent5ab62c4cb8bc2ccf718d0b60749bcc03fba54784 (diff)
don't block ui with stickers or tos
-rw-r--r--src/boot/after_store.js5
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',