Commit 3337ec9a authored by Kasper Seweryn's avatar Kasper Seweryn 🥞 Committed by Kasper Seweryn
Browse files

Load theme as fast as possible

parent 1d4f2e1d
......@@ -5,6 +5,8 @@ import store from '~/store'
import { sync } from 'vuex-router-sync'
import VueCompositionAPI, { createApp } from '@vue/composition-api'
import Vue, { CreateElement } from 'vue'
import useTheme from '~/composables/useTheme'
useTheme()
Vue.config.devtools = true
......@@ -19,16 +21,17 @@ const app = createApp({
components: {
App: () => import('~/App.vue')
},
setup () {
},
data: () => ({ isMounted: false }),
async mounted () {
this.isMounted = true
},
render (h: CreateElement) {
if (this.isMounted) {
return h('app')
// return h('app')
}
// TODO (wvffle): Import fake app component
return h()
}
})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment