For the complete documentation index, see llms.txt. This page is also available as Markdown.

generateSelphIDBrowserCache

Preloads the SelphID engine resources before mounting the component.

Details

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

Syntax

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

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

await generateSelphIDBrowserCache('...');

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

Last updated