Skip to main content
Preloading routes loads the components of a given route that the user might navigate to in future. This ensures that the components are available earlier and less likely to block the navigation, improving performance.
Nuxt already automatically preloads the necessary routes if you’re using the NuxtLink component.

Type Signature

Parameters

RouteLocationRaw
required
The route to preload. Can be a string path or a route location object.

Example

Preload a route when using navigateTo:

Notes

On server, preloadRouteComponents will have no effect.

See Also