[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 Oct 29 15:41:05 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:  5.9
Component:  Media            |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:  performance
-----------------------------+--------------------------

Comment (by isaumya):

 Hi @westonruter,
 Yes, I agree with you on that. I thought for the above the fold images you
 guys are gonna add `loading="eager"` instead of committing it. Sorry my
 misunderstanding.

 Generally, when I build custom themes for custom development I always add
 the `loading="eager" importace="high"` for the first above the fold image
 that is going to general the LCP value.

 But thanks a lot for your reply. I am hoping (kind of sure) that the
 `importance` attribute will be standardized very soon. I think Firefox
 will do it first and hopefully, Safary will either not do it or will do it
 after 5-10 years or so. As the other chromium-based browsers will have it
 (I think) as they are chromium based.

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


More information about the wp-trac mailing list