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 time.
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 loading time.
Considerations
If used, this method must be called 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