ADD: preload assets

This commit is contained in:
webfussel 2024-05-24 09:18:14 +02:00
parent b63f612103
commit 14866f81f2

View file

@ -52,7 +52,13 @@ useHead({
name: 'robots', name: 'robots',
content: 'index, follow' content: 'index, follow'
}, },
],
link: [
{ rel: 'preload', href: '/img/profile_big.webp', type: 'image/webp' },
{ rel: 'preload', href: '/img/profile_small.webp', type: 'image/webp' },
{ rel: 'preload', as: 'font', href: '/opensans.woff2', type: 'font/woff2' },
{ rel: 'preload', as: 'font', href: '/roboto_con_bold.woff2', type: 'font/woff2' },
{ rel: 'preload', as: 'font', href: '/roboto_con_reg.woff2', type: 'font/woff2' },
] ]
}) })
</script> </script>