-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.vue
More file actions
60 lines (57 loc) · 1.71 KB
/
app.vue
File metadata and controls
60 lines (57 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<template>
<div>
<NuxtLoadingIndicator
color="linear-gradient(to right, #667eea, #764ba2)"
:height="3"
:duration="2000"
:throttle="200"
/>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</div>
</template>
<script setup lang="ts">
const { whitelabel } = useWhitelabel()
// Dynamically set favicon based on whitelabel logo
useHead(() => ({
link: [
{
rel: 'icon',
type: 'image/png',
href: whitelabel.value?.logoUrl || '/favicon.ico',
},
// Preconnect to font providers to eliminate waterfall
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
{ rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: 'anonymous' },
{ rel: 'preconnect', href: 'https://use.typekit.net' },
{ rel: 'preconnect', href: 'https://p.typekit.net' },
// Preconnect to image CDNs
{ rel: 'dns-prefetch', href: 'https://i.ibb.co' },
{ rel: 'dns-prefetch', href: 'https://i.imgur.com' },
// Preconnect to Google Tag Manager for faster script loading
{ rel: 'preconnect', href: 'https://www.googletagmanager.com' },
// Preload critical fonts with font-display: optional (fastest FCP)
{
rel: 'preload',
as: 'style',
href: 'https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=optional',
onload: 'this.onload=null;this.rel=\'stylesheet\'',
},
{
rel: 'preload',
as: 'style',
href: 'https://use.typekit.net/eor8tme.css',
onload: 'this.onload=null;this.rel=\'stylesheet\'',
},
],
}))
</script>
<style>
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
font-size: 16px;
line-height: 1.5;
}
</style>