> 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/generateselphidbrowsercache.md).

# generateSelphIDBrowserCache

## Details

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

### Syntax

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

await generateSelphIDBrowserCache('...');
```

## Description

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

### Considerations

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

***

## Example

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

await generateSelphIDBrowserCache('...');

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