wp_lazy_loading_enabled
wp_lazy_loading_enabled ( $tag_name, $context )
Parameters:- (string) tag_name The tag name.
- (string) context Additional context, like the current filter name or the function name from where this was called.
Returns:- (bool) Whether to add the attribute.
Defined at:Change Log: - Introduced in WordPress: 5.5.0
- Deprecated in WordPress: —
Description
Determines whether to add the `loading` attribute to the specified tag in the specified context.