Loading
API reference › HTML Attribute › Values › Loading
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.
| Case | Value | Description |
|---|---|---|
EAGER | 'eager' | Load the image immediately, regardless of whether or not the image is currently within the visible viewport (eager). |
LAZY | 'lazy' | Defer loading of the image until it reaches a calculated distance from the viewport (lazy). |