Prefetch all pages on hover for better performance

This commit is contained in:
vollstock committed 2025-11-17 10:10:34 +01:00
1 parent 71260199a1
commit 387c3be93a
4 files changed
+14 -11

No files matched your search

+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>