# Preloading the models



## Scope and provenance

- Product: web
- Status: Imported reference snapshot. Import date is not a verification date or guarantee of current release support.
- SDK version: Not declared for this page. Versions in examples must not be assumed current.
- Environment: Page-specific. Confirm the environment host, credentials, and service configuration; do not infer them from another product.
- Source: https://websdk2docs.idmission.com/other/preloading-the-models
- Imported at: 2026-10-21T17:27:01.149Z
- Canonical page: https://docs.idmission.com/web/other/preloading-the-models
- Agent index: https://docs.idmission.com/llms.txt

---

<a id="preloading-the-models"></a>

### Preloading the models

If you would like to programmatically issue a command to begin downloading and preparing the models on the client's browser *before* they enter a customer flow, the following method is available:

```html
<script type="module">
    document.addEventListener('idmission-web-sdk.ready', (e) => {
      IDmissionSDK.preloadModels()
    })
</script>
```

You may specify which models should be loaded and which should be skipped by supplying an object argument, like so:

```js
IDmissionSDK.preloadModels({
  documentDetectionModel: true,
  focusModel: true,
  faceDetectionModel: false,
})
```

This can be useful if, for example, you know you won't need any flows that depend on face detection.
