> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# lifecycle:delay

[localhost link]: http://localhost:3000/docs/5/app-studio/reference/tags/lightning.directive.lifecycleDelay

[mintlify link]: https://doc.lucidworks.com/docs/5/app-studio/reference/tags/lightning.directive.lifecycleDelay

[old doc.lw link]: https://doc.lucidworks.com/app-studio/4.2/1084.md

> [card] Key questions to get you started
>
> Powered by Lucidworks Agent Studio

## Description

Delays rendering of an object

## Usage

as element:

```xml wrap  theme={"dark"}
<lifecycle:delay
       delay="{string}">
</lifecycle:delay>
```

#### Parameters

| Param | Type | Details |
| - | - | - |
| delay | **string** | The delay in ms |

## Example

#### Source

```xml wrap  theme={"dark"}
<p>A message will appear after 5 seconds has passed.</p>
<lifecycle:delay delay="5000">
    <search:alert style="alertbox-positive">Alert - 5 Seconds has passed.</search:alert>
</lifecycle:delay>
<p>A message will appear after 10 seconds has passed.</p>
<lifecycle:delay delay="10000">
    <search:alert style="alertbox-warning">Alert - 10 Seconds has passed.</search:alert>
</lifecycle:delay>
<p>A message will appear after 20 seconds has passed.</p>
<lifecycle:delay delay="20000">
    <search:alert style="alertbox-negative">Alert - 20 Seconds has passed.</search:alert>
</lifecycle:delay>
```

#### Result

![Result](https://mintcdn.com/lucidworks/ENcE8K39c0iEpL8J/assets/images/app-studio/as-examples/tags/lifecycleDelay.png?fit=max\&auto=format\&n=ENcE8K39c0iEpL8J\&q=85\&s=3ac48e0e94c6a39876771f7e0dfd42cc)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.