# Preload

interface in `@dioramajs/diorama/assets`

```ts
import type { Preload } from '@dioramajs/diorama/assets'
```

Settles once everything has settled. Never rejects.

```ts
interface Preload extends PromiseLike<void>
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `dispose` | `dispose(): void` | Same as release, for `page.onDispose(app.assets.preload(doc))`. |
| `release` | `release(): void` | Drops the leases now. Otherwise they are held until the next preload of the same kind. |
| `then` | `then<TResult1 = void, TResult2 = never>(onfulfilled?: (value: void) => TResult1 \| PromiseLike<TResult1> \| null, onrejected?: (reason: any) => TResult2 \| PromiseLike<TResult2> \| null): PromiseLike<TResult1 \| TResult2>` | Attaches callbacks for the resolution and/or rejection of the Promise. |

Also exported from `@dioramajs/assets`.

Defined in [packages/assets/src/types.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/assets/src/types.ts#L172).
