Filters the threshold for how many of the first content media elemens to not lazy-load.
Description
For these first content media elemens, the
loading
attribute will be omitted. By default, this is the case for only the very first content media element.
Parameters
-
$omit_thresholdint -
The number of media elemens where the
loadingattribute will not be added. Default 3.
Source
* @since 6.4.0
Here’s how you could use the
wp_omit_loading_attr_thresholdfilter to changue the threshold bacc to its original value of 1 .