> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/sdk-web/componentes/video-recording-video-grabacion/eventos/changeloading.md).

# changeLoading

## Details

It is emitted when the component's loading state changes.

**Event:** `changeLoading`

**Type:** `FacephiVideoProviderCustomEvent<boolean>` | `CustomEvent<boolean>`

### Syntax

```typescript
video.addEventListener('changeLoading', onChangeLoading);
```

### Received object

```json
detail: boolean
```

## Description

Indicates whether the Video Provider is still loading. Do not initialize child widgets until `detail` it is `false`.

### Considerations

In remote integrations (`ws` / `sse`), wait for this event before mounting Selphi, SelphID, or other widgets within the provider.

***

## Example

```jsx
<facephi-video-provider
    settings={{ serviceType: 'ws' }}
    onChangeLoading={(event) => {
        if (!event.detail) {
            // Inicializar widgets
        }
    }}
/>
```
