WPDev.one
Core Function
View Source on Trac ↗

wp_get_loading_attr_default()

wp_get_loading_attr_default( mixed $context )

Gets the default value to use for a `loading` attribute on an element.

Parameters 1 required

Name / Type Description
$context
string

Context for the element for which the `loading` attribute value is requested.

Required

Return Value

((string)
(string | bool) The default `loading` attribute value. Either 'lazy', 'eager', or a boolean `false`, to indicate that the `loading` attribute should be skipped.

Function Information

Since Version
5.9.0
Source File
wp-includes/deprecated.php
Advertisement