# AssetsOptions

interface in `@dioramajs/diorama/assets`

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

Options of the `assets` plugin.

```ts
interface AssetsOptions
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `concurrency` | `number` | Parallel requests. Default 6. At most 2 of them low, and only while no high request waits. |
| `decoders` | `Partial<DecoderOptions>` | Where the Draco, KTX2 and Meshopt decoders come from. |
| `loaders` | `Readonly<Record<string, LoaderEntry>>` | Own loaders by type, next to the built-in ones. A lazy one is picked by `type` only. |
| `preload` | `boolean` | Reads data-dio-preload. Default true. Off under Save-Data or 2g. |
| `retain` | `number` | Bytes of unused entries kept for reuse (back navigation, preloads), LRU. Default 32 MB, 0 disables. |

Also exported from `@dioramajs/assets`.

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