mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
docs: add note about link prefetching (#7540)
This commit is contained in:
parent
3ed63a6b70
commit
f0005e6684
@ -38,6 +38,8 @@ pages/
|
||||
|
||||
The `<NuxtLink>` component links pages between them. It renders a `<a>` tag with the `href` attribute set to the route of the page. Once the application is hydrated, pages transitions are performed in JavaScript by updating the browser URL. This prevents full-page refreshes and allow for animated transitions.
|
||||
|
||||
When a `<NuxtLink>` enters the viewport, Nuxt will automagically prefetch the linked page in background, resulting in faster subsequent page transitions.
|
||||
|
||||
```vue [pages/app.vue]
|
||||
<template>
|
||||
<header>
|
||||
|
Loading…
Reference in New Issue
Block a user