mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
docs: improve NuxtLink prefetch explanation (#7540)
This commit is contained in:
parent
f0005e6684
commit
4775ee8e31
@ -38,7 +38,7 @@ 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.
|
||||
When a `<NuxtLink>` enters the viewport on the client side, Nuxt will automatically prefetch components and payload (generated pages) of the linked pages ahead of time, resulting in faster navigation.
|
||||
|
||||
```vue [pages/app.vue]
|
||||
<template>
|
||||
|
Loading…
Reference in New Issue
Block a user