Skip to content

Commit f7ef9d2

Browse files
committed
Update the note about Vue Router and lazy loading
1 parent 813a9f5 commit f7ef9d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/best-practices/performance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function loadLazy() {
7171
}
7272
```
7373

74-
Lazy loading is best used on features that are not immediately needed after initial page load. In Vue applications, this is typically used in combination with Vue's [Async Component](/guide/components/async.html) feature to create split chunks for component trees:
74+
Lazy loading is best used on features that are not immediately needed after initial page load. In Vue applications, this can be used in combination with Vue's [Async Component](/guide/components/async.html) feature to create split chunks for component trees:
7575

7676
```js
7777
import { defineAsyncComponent } from 'vue'
@@ -82,7 +82,7 @@ import { defineAsyncComponent } from 'vue'
8282
const Foo = defineAsyncComponent(() => import('./Foo.vue'))
8383
```
8484

85-
If using client-side routing via Vue Router, it is strongly recommended to use async components as route components. See [Lazy Loading Routes](https://router.vuejs.org/guide/advanced/lazy-loading.html) for more details.
85+
For applications using Vue Router, it is strongly recommended to use lazy loading for route components. Vue Router has explicit support for lazy loading, separate from `defineAsyncComponent`. See [Lazy Loading Routes](https://router.vuejs.org/guide/advanced/lazy-loading.html) for more details.
8686

8787
### SSR / SSG
8888

0 commit comments

Comments
 (0)