Prefetch all pages on hover for better performance
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user