# Prefetch static resources

> For the complete documentation index, see [llms.txt](https://developers.thoughtspot.com/docs/llms.txt)

Source: https://developers.thoughtspot.com/docs/prefetch-resources

# 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.

```javascript
init
    ({
        thoughtSpotHost:"https://<hostname>:<port>",
        authType: AuthType.EmbeddedSSO,
        callPrefetch: true,
    });
```

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 to `false`.