> 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/sdk-provider/metodos/generateselphibrowsercache.md).

# generateSelphiBrowserCache

## Details

Download the Selphi engine resources before the component is integrated into the DOM to reduce its load.

### Syntax

```typescript
import { generateSelphiBrowserCache } from '@facephi/sdk-web-wc';

await generateSelphiBrowserCache('...');
```

## Description

Function exported by `@facephi/sdk-web-wc` to preload the Selphi bundle and reduce the initial load time.

### Considerations

If used, this method must be invoked before mounting the Selphi Widget in the DOM; otherwise, this step is not necessary. The License must include Selphi Widget.

***

## Example

```jsx
import { generateSelphiBrowserCache } from '@facephi/sdk-web-wc';

await generateSelphiBrowserCache('...');

<facephi-sdk-provider apikey={process.env.FACEPHI_SDK_APIKEY} />
```
