+337
-345
lines changedFilter options
+337
-345
lines changed Original file line number Diff line number Diff line change
@@ -230,6 +230,9 @@
230
230
"event": {
231
231
"description": "router-link prop: Specify the event that triggers the link. In most cases you should leave this as the default"
232
232
},
233
+
"prefetch": {
234
+
"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 'prefetch' to 'true' or 'false' will overwrite the default value of 'router.prefetchLinks'"
235
+
},
233
236
"noPrefetch": {
234
237
"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"
235
238
}
Original file line number Diff line number Diff line change
@@ -155,19 +155,18 @@ render a [`<nuxt-link>`](https://nuxtjs.org/api/components-nuxt-link) sub compon
155
155
`<router-link>`. `<nuxt-link>` supports all of the above router link props, plus the following
156
156
additional Nuxt.js specific props.
157
157
158
-
### `no-prefetch`
158
+
### `prefetch`
159
159
160
160
- type: `boolean`
161
-
- default: `false`
162
-
- availability: Nuxt.js 2.4.0+
161
+
- default: `undefined`
162
+
- availability: Nuxt.js 2.10.0+
163
163
164
164
To improve the responsiveness of your Nuxt.js applications, when the link will be displayed within
165
-
the viewport, Nuxt.js will automatically prefetch the code splitted page. Setting `no-prefetch` will
166
-
disabled this feature for the specific link.
165
+
the viewport, Nuxt.js will automatically prefetch the code splitted page. Setting `prefetch` to
166
+
`true` or `false` will overwrite the default value of `router.prefetchLinks` configured in the
167
+
`nuxt.config.js` configuration file.
167
168
168
-
**Note:** If you have prefetching disabled in your `nuxt.config.js` configuration
169
-
(`router: { prefetchLinks: false}`), or are using a version of Nuxt.js `< 2.4.0`, then this prop
170
-
will have no effect.
169
+
**Note:** If you have are using a version of Nuxt.js `< 2.10.0`, then this prop will have no effect.
171
170
172
171
Prefetching support requires
173
172
[IntersectionObserver](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API)
@@ -187,3 +186,17 @@ export default {
187
186
}
188
187
}
189
188
```
189
+
190
+
### `no-prefetch`
191
+
192
+
- type: `boolean`
193
+
- default: `false`
194
+
- availability: Nuxt.js 2.4.0+
195
+
196
+
To improve the responsiveness of your Nuxt.js applications, when the link will be displayed within
197
+
the viewport, Nuxt.js will automatically prefetch the code splitted page. Setting `no-prefetch` will
198
+
disabled this feature for the specific link.
199
+
200
+
**Note:** If you have prefetching disabled in your `nuxt.config.js` configuration
201
+
(`router: { prefetchLinks: false }`), or are using a version of Nuxt.js `< 2.4.0`, then this prop
202
+
will have no effect.
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4