Skip to content

Commit 22e1312

Browse files
committed
perf: prefetch links on hover, not visibility
1 parent c88173d commit 22e1312

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

nuxt.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ export default defineNuxtConfig({
5050
experimental: {
5151
viewTransition: true,
5252
typedPages: true,
53+
defaults: {
54+
nuxtLink: {
55+
prefetchOn: {
56+
interaction: true,
57+
visibility: false,
58+
},
59+
},
60+
},
5361
},
5462

5563
compatibilityDate: '2024-04-03',

0 commit comments

Comments
 (0)