---
url: /reference/items/LazyInclude.md
---
# LazyInclude
## Usage
Use the `LazyInclude` component to load parts of your page lazily.
::: code-group
```js [app.js] twoslash
import { registerComponent } from '@studiometa/js-toolkit';
import { LazyInclude } from '@studiometa/ui';
registerComponent(LazyInclude);
```
```html index.html
Loading...
An error occured.
```
:::
::: warning Orchestration
The content is fetched when the component is mounted. Use [`withMount...` decorators](https://js-toolkit.studiometa.dev/api/decorators/withMountWhenInView.html) to wrap the ` LazyInclude` class for a fine grained loading strategy.
:::