mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-07 09:22:27 +00:00
docs: fix case
This commit is contained in:
parent
0792f95b86
commit
6be28279f1
@ -121,11 +121,11 @@ const show = ref(false)
|
||||
|
||||
## Delayed Hydration
|
||||
|
||||
In real world applications, some pages may include a lot of content and a lot of components, and most of the time not all of them need to be interactive right off the bat. Having them all load eagerly can negatively impact performance and bundle size.
|
||||
In real world applications, some pages may include a lot of content and a lot of components, and most of the time not all of them need to be interactive as soon as the page is loaded. Having them all load eagerly can negatively impact performance and increase bundle size.
|
||||
|
||||
In order to optimize the page, you may want to delay the hydration of some components until they're visible, or until the browser is done with more important tasks for example. Nuxt has first class support for delayed hydration components and can help you reduce your boilerplate along the way.
|
||||
|
||||
Nuxt has reserved component prefixes that will handle this delayed hydration for you, that extend dynamic Imports. By prefixing your component with `LazyVisible`, Nuxt will automatically handle your component and delay its hydration until it will be on screen.
|
||||
Nuxt has reserved component prefixes that will handle this delayed hydration for you, that extend dynamic imports. By prefixing your component with `LazyVisible`, Nuxt will automatically handle your component and delay its hydration until it will be on screen.
|
||||
|
||||
```vue [pages/index.vue]
|
||||
<template>
|
||||
@ -146,7 +146,7 @@ If you need the component to load as soon as possible, but not block the critica
|
||||
```
|
||||
|
||||
::important
|
||||
Since Nuxt uses `LazyIdle` and `LazyVisible` to handle delayed hydration, you should avoid naming your components that, as dynamic imports will break for you. Delayed Hydration would still be possible by adding the prefix, for example to a component named `IdleBar`:
|
||||
Since Nuxt uses `LazyIdle` and `LazyVisible` to handle delayed hydration, you should avoid naming your components that, as dynamic imports will break for you. Delayed hydration would still be possible by adding the prefix, for example to a component named `IdleBar`:
|
||||
`<LazyIdleIdleBar />`
|
||||
::
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user