From f8cc90688f57276683151ef422282234d982e6d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20Gonz=C3=A1lez?= Date: Tue, 12 May 2020 13:20:00 +0200 Subject: [PATCH 1/8] Adding prefetch property to links --- docs/common-props.json | 3 + docs/components/header.vue | 2 +- .../markdown/reference/router-links/README.md | 9 + src/components/avatar/avatar.js | 620 +++++++++--------- src/components/link/link.js | 4 + src/components/pagination-nav/README.md | 1 + .../pagination-nav/pagination-nav.js | 7 +- 7 files changed, 336 insertions(+), 310 deletions(-) diff --git a/docs/common-props.json b/docs/common-props.json index c811f60b7a9..ea5d9cd69f5 100644 --- a/docs/common-props.json +++ b/docs/common-props.json @@ -232,5 +232,8 @@ }, "noPrefetch": { "description": "nuxt-link prop: To improve the responsiveness of your Nuxt.js applications, when the link will be displayed within the viewport, Nuxt.js will automatically prefetch the code splitted page. Setting 'no-prefetch' will disabled this feature for the specific link" + }, + "prefetch": { + "description": "nuxt-link prop: To improve the responsiveness of your Nuxt.js applications, when the link will be displayed within the viewport, Nuxt.js will automatically prefetch the code splitted page. Setting 'true' for prefetching, 'false' for no prefetching', or 'null' for default value in 'router.prefetchLinks'." } } diff --git a/docs/components/header.vue b/docs/components/header.vue index b6505dea2bd..22a16581e1e 100644 --- a/docs/components/header.vue +++ b/docs/components/header.vue @@ -30,7 +30,7 @@