feat: render app shell with ssr to improve loading experience (#448)
This commit is contained in:
parent
b545efeacc
commit
9395b7031e
35 changed files with 169 additions and 127 deletions
5
app.vue
5
app.vue
|
@ -1,7 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
setupI18n()
|
||||
setupLogging()
|
||||
setupPageHeader()
|
||||
await setupI18n()
|
||||
provideGlobalCommands()
|
||||
|
||||
// We want to trigger rerendering the page when account changes
|
||||
|
@ -11,7 +11,6 @@ const key = computed(() => `${currentServer.value}:${currentUser.value?.account.
|
|||
<template>
|
||||
<NuxtLoadingIndicator color="repeating-linear-gradient(to right,var(--c-primary) 0%,var(--c-primary-active) 100%)" />
|
||||
<NuxtLayout :key="key">
|
||||
<NuxtPage />
|
||||
<NuxtPage v-if="isMastoInitialised" />
|
||||
</NuxtLayout>
|
||||
<TeleportTarget id="teleport-end" />
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue