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

WordPress Trac noreply at wordpress.org
Fri Jun 30 09:37:29 UTC 2023


#58680: Header image does not add fetch priority attribute
--------------------------+-----------------------------
 Reporter:  spacedmonkey  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  Future Release
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  performance
--------------------------+-----------------------------
Changes (by spacedmonkey):

 * keywords:  has-patch =>


Comment:

 I put together a quick POC of using the `get_header_image_tag` and
 `wp_filter_content_tags` callback to add the missing attributes. However,
 in my testing, it added async and lazy loading. Async is fine to add, but
 adding lazy this large header image does make a lot of sense. See screen.

 https://github.com/WordPress/wordpress-develop/pull/4764

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


More information about the wp-trac mailing list