change: loading performance

This commit is contained in:
Julian Krauser 2025-05-10 17:37:58 +02:00
parent 7c8be0ccb9
commit 716b5535ae
14 changed files with 129 additions and 98 deletions

14
app.vue
View file

@ -3,19 +3,13 @@
</template>
<script setup lang="ts">
import calculateTitle from "./composables/calculateTitle";
import provideGlobal from "./composables/provideGlobal";
const { SEO } = await provideGlobal();
const title = await calculateTitle();
const { metaDescription, keywords } = SEO ?? {};
const { seo, title } = useGlobal();
useHead({
title: title,
title: title.value,
meta: [
{ name: "description", content: metaDescription },
{ name: "keywords", content: keywords },
{ name: "description", content: seo.value?.metaDescription },
{ name: "keywords", content: seo.value?.keywords ?? "" },
],
});
</script>