[wp-trac] [WordPress Trac] #58680: Header image does not add fetch priority attribute

WordPress Trac noreply at wordpress.org
Wed Jul 5 19:28:17 UTC 2023


#58680: Header image does not add fetch priority attribute
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:  flixos90
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.3
Component:  Media                                |     Version:  trunk
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests changes-    |     Focuses:
  requested                                      |  performance
-------------------------------------------------+-------------------------
Changes (by flixos90):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56142" 56142]:
 {{{
 #!CommitTicketReference repository="" revision="56142"
 Media: Ensure custom header image tag supports loading optimization
 attributes.

 This changeset is a follow up to [56037] and ensures that the
 `get_header_image_tag()` function receives the benefits of
 `wp_get_loading_optimization_attributes()` as well. Prior to
 `fetchpriority` support, this was not needed since the header image should
 never be lazy-loaded, but the image certainly is a `fetchpriority`
 candidate, so therefore it is crucial to have it supported.

 Props felipeelia, spacedmonkey, mukesh27, westonruter, flixos90.
 Fixes #58680.
 }}}

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


More information about the wp-trac mailing list