[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:28:02 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 isaumya):

 Thanks a ton, @westonruter for the snippet. Actually, I was trying to
 avoid using `the_content` filter and instead was looking for a way to
 directly hook into the images rather than parsing the whole content. As
 when using `the_content` if the content is very large, PHP has to do
 really a lot of work executing and parsing it. I just thought using
 `the_content` was not an optimized code.

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


More information about the wp-trac mailing list