Skip to content
PHP Ecosystem
Explore

Loading

API reference › HTML Attribute › Values › Loading

enumUIAwesome\Html\Attribute\Values\Loading
Backed bystring
Sourcesrc/Values/Loading.php

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.

CaseValueDescription
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).