fix: faster page loading with no async
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
import type { Article } from '@interfaces'
|
||||
import { ref, onBeforeMount, onUpdated, onMounted, defineAsyncComponent } from 'vue'
|
||||
import { ref, onBeforeMount, onUpdated, onMounted } from 'vue'
|
||||
import { loadArticle, updateDynamicContent } from '@lib/articles'
|
||||
import { useRoute, onBeforeRouteUpdate, type RouteLocation } from 'vue-router'
|
||||
import { simpleDateFormat } from '@lib/dates'
|
||||
import { AUTHORED, PUBLISHED_ON, SIGNATURE, TITLE, UPDATED_ON } from '@lib/config'
|
||||
import { stripHTML } from '@lib/strings'
|
||||
|
||||
const BackHomeButton = defineAsyncComponent(() => import('@components/BackHomeButton.vue'))
|
||||
const NotFoundView = defineAsyncComponent(() => import('@views/NotFoundView.vue'))
|
||||
import BackHomeButton from '@components/BackHomeButton.vue'
|
||||
import NotFoundView from '@views/NotFoundView.vue'
|
||||
|
||||
const article = ref<Article | null>(null)
|
||||
const loading = ref<boolean>(true)
|
||||
|
||||
Reference in New Issue
Block a user