[wp-trac] [WordPress Trac] #59256: Twenty Twenty-Two: Header image missing dimension attributes

WordPress Trac noreply at wordpress.org
Thu Aug 31 16:47:34 UTC 2023


#59256: Twenty Twenty-Two: Header image missing dimension attributes
---------------------------+-------------------------
 Reporter:  flixos90       |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  6.4
Component:  Bundled Theme  |    Version:
 Severity:  normal         |   Keywords:  needs-patch
  Focuses:  performance    |
---------------------------+-------------------------
 The prominent bird image used in Twenty Twenty-Two does not have dimension
 attributes `width` and `height` set, which is problematic for
 [https://web.dev/cls/ CLS performance]. WordPress core automatically fills
 width and height for any attachment images, but since this one comes from
 the theme itself, this is not supported.

 The lack of those dimension attributes lead to further performance
 problems for load time performance (LCP), since loading optimization
 attributes like `fetchpriority="high"` cannot reasonably be applied to
 images without dimension attributes.

 To provide a good starting point, the theme should be updated so that the
 image provides dimension attributes.

 This bug was discovered while reviewing the issues reported in #58770.

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


More information about the wp-trac mailing list