From 035ae25fa519d5fbdfd66cb81d85fa1ceeb16ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Ollivier?= Date: Thu, 15 Sep 2022 10:14:17 +0200 Subject: [PATCH 1/2] docs(routing): add prefetch explanation --- docs/content/1.getting-started/5.routing.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/content/1.getting-started/5.routing.md b/docs/content/1.getting-started/5.routing.md index 507ed32e3a7..069054da120 100644 --- a/docs/content/1.getting-started/5.routing.md +++ b/docs/content/1.getting-started/5.routing.md @@ -38,6 +38,8 @@ pages/ The `` component links pages between them. It renders 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 `` enters the viewport, the page it links to is prefetched in the background. When the user clicks on the link, the page is already loaded and the transition is faster. + ```vue [pages/app.vue]