Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
docs: improve NuxtLink prefetch explanation (#7540)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 15, 2022
1 parent f0005e6 commit 4775ee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/1.getting-started/5.routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 4775ee8

Please sign in to comment.