# AttachOptions

interface in `@dioramajs/diorama/effects`

```ts
import type { AttachOptions } from '@dioramajs/diorama/effects'
```

Options of `attach`.

```ts
interface AttachOptions
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `eager?` | `boolean` | Load now instead of when near the viewport. |
| `signal?` | `AbortSignal` | Aborting it detaches the handle. |
| `track?` | `'frame' \| 'layout'` | By default the box is read live in every drawn frame and the motion watcher runs. 'frame' keeps the watcher awake while visible (long JS tweens). 'layout' uses a cached box, for static grids. |

Also exported from `@dioramajs/effects`.

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