# PreloadOptions

interface in `@dioramajs/diorama/assets`

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

Options of `assets.preload`.

```ts
interface PreloadOptions
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `base?` | `string \| URL` | Base for relative URLs and srcset, i.e. the next page's URL. Defaults to <base href>, then document.baseURI. |
| `crossOrigin?` | `CrossOrigin` | CORS mode of images given as URLs. Match the `<img crossorigin>` that will show them, since it is part of the key. Images from markup or a document carry their own `crossorigin`. |
| `priority?` | `Priority` | Default 'low'. |

Also exported from `@dioramajs/assets`.

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