[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
Wed Mar 16 14:26:25 UTC 2022


#53232: Add async decoding attribute as default to the HTML image tags generated by
WordPress
--------------------------------------+------------------------------
 Reporter:  isaumya                   |       Owner:  adamsilverstein
     Type:  feature request           |      Status:  assigned
 Priority:  normal                    |   Milestone:  6.0
Component:  Media                     |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  performance
--------------------------------------+------------------------------

Comment (by adamsilverstein):

 > So, when these changes are applied will it also work on images added by
 Gutenberg blocks like the image block, gallery block, cover block, etc.

 @isaumya yes - these changes are applied via a content filter so this
 should work for almost every image in the content, regardless of how you
 added it (Gutenberg, classic editor, etc). The only exception would be
 sites that disable "the_content" filtering.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53232#comment:47>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list