[wp-trac] [WordPress Trac] #53232: Add async decoding attribute as default to the HTML image tags generated by WordPress
WordPress Trac
noreply at wordpress.org
Fri May 21 17:33:16 UTC 2021
#53232: Add async decoding attribute as default to the HTML image tags generated by
WordPress
-----------------------------+------------------------------
Reporter: isaumya | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Resolution:
Keywords: | Focuses: performance
-----------------------------+------------------------------
Comment (by westonruter):
Well, using `the_content` is how the `loading` attribute is added. It's
how core adds `srcset` and `sizes` as well. The performance impact should
be negligible. True it will be faster when when/if the replacement is done
inside of `wp_filter_content_tags()` since there is less content to search
through, but in the meantime a simple `the_content` filter will get you
`decoding=async` now.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53232#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list