Filters the threshold for how many of the first content media elements to not lazy-load.
Description
For these first content media elements, the loading
attribute will be omitted. By default, this is the case for only the very first content media element.
Parameters
$omit_threshold
int- The number of media elements where the
loading
attribute will not be added. Default 3.
Source
* @since 6.3.0 The default threshold was changed from 1 to 3.
Here’s how you could use the
wp_omit_loading_attr_threshold
filter to change the threshold back to its original value of 1.