# Loading

> Represents values for the HTML loading attribute on <img> and <iframe> elements.

[API reference](/docs/api/index.md) › [HTML Attribute](/docs/extensions/html-attribute/reference/index.md) › [Values](/docs/extensions/html-attribute/reference/values/index.md) › Loading

| enum | `UIAwesome\Html\Attribute\Values\Loading` |
| --- | --- |
| Backed by | `string` |
| Source | [`src/Values/Loading.php`](https://github.com/ui-awesome/html-attribute/blob/main/src/Values/Loading.php#L13) |

Represents values for the HTML `loading` attribute on `<img>` and `<iframe>` elements.

See also: <https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/iframe#loading>, <https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/img#loading>.

## Cases

| Case | Value | Description |
| --- | --- | --- |
| <span id="case-EAGER"></span>`EAGER` | `'eager'` | Load the image immediately, regardless of whether or not the image is currently within the visible viewport (`eager`). |
| <span id="case-LAZY"></span>`LAZY` | `'lazy'` | Defer loading of the image until it reaches a calculated distance from the viewport (`lazy`). |