wp_omit_loading_attr_threshold WordPress Filter Hook
This hook allows you to specify how many articles need to be loaded before the attribute "loading" is added to the
apply_filters( 'wp_omit_loading_attr_threshold', int $omit_threshold ) #
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 1.
Source
File: wp-includes/media.php
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |