[wp-trac] [WordPress Trac] #58892: Integrate `decoding="async"` logic into `wp_get_loading_optimization_attributes()`

WordPress Trac noreply at wordpress.org
Mon Jul 24 18:47:12 UTC 2023


#58892: Integrate `decoding="async"` logic into
`wp_get_loading_optimization_attributes()`
-------------------------+--------------------
 Reporter:  flixos90     |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  6.4
Component:  Media        |    Version:
 Severity:  normal       |   Keywords:
  Focuses:  performance  |
-------------------------+--------------------
 The `wp_get_loading_optimization_attributes()` function was added in
 WordPress 6.3 as a central way to apply loading attributes to specific
 elements/tags. One of the attributes that WordPress core has supported
 since 6.1 (see #53232) is `decoding="async"`. This attribute is currently
 still manually applied, instead it should be applied as part of the new
 function going forward.

 This ticket's implementation should be considered blocked by #58891 as
 making the changes before that would be unnecessarily complicated and
 error-prone.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58892>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list