Prefetch all pages on hover for better performance

This commit is contained in:
2025-11-17 10:10:34 +01:00
parent 71260199a1
commit 387c3be93a
4 changed files with 14 additions and 11 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ const currentPath = typeof window !== undefined ? window.location.pathname : '';
:class="['w-full justify-start', { 'bg-muted': urlIsActive(item.href, currentPath) }]"
as-child
>
<Link :href="item.href">
<Link :href="item.href" prefetch>
{{ item.title }}
</Link>
</Button>