# LoadOptions

interface in `@dioramajs/diorama/assets`

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

Options of `assets.load`.

```ts
interface LoadOptions<K extends string = string>
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `crossOrigin?` | `CrossOrigin` | Part of the key, as the browser keys its image cache by CORS mode. A `texture` of another origin is always asked in CORS mode: `''` becomes `'anonymous'`, since the GPU refuses pixels fetched without it. |
| `options?` | `Readonly<Record<string, string \| number \| boolean>>` | Loader options, part of the key. For example `{ colorSpace: 'linear' }`. |
| `priority?` | `Priority` | Default 'normal'. An entry runs at the highest priority among its leases. |
| `signal?` | `AbortSignal` | Aborting it releases the lease. |
| `type?` | `K` | Guessed from the extension when omitted: gltf for .glb and .gltf, ktx2 for .ktx2, texture for images. |

Also exported from `@dioramajs/assets`.

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