init
({
thoughtSpotHost:"https://<hostname>:<port>",
authType: AuthType.EmbeddedSSO,
callPrefetch: true,
});
Prefetch static resources
By default, the SDK fetches resources when they are required. If you want to prefetch and cache static resources and serve these resources from the user’s local disk, you can enable the prefetch API call.
The prefetch API fetches static resources before the application loads. The prefetched resources are then cached by the web browsers and served locally to provide faster access to your app.
- callPrefetch
-
Boolean. When set to
true
, the SDK calls the prefetch API to prefetch the resources from the specified URL. By default, it is set tofalse
.