Opened 3 years ago
Closed 3 years ago
#5986 closed defect (bug) (fixed)
Improve image markup
Reported by: | jonoaldersonwp | Owned by: | coffee2code |
---|---|---|---|
Milestone: | Priority: | high | |
Component: | Photo Directory | Keywords: | performance seo |
Cc: |
Description (last modified by )
Images in grid displays like the one on https://wordpress.org/photos/ and https://wordpress.org/photos/photo/ and https://wordpress.org/photos/author/anariel-design/ should:
- Use
loading="lazy"
anddecoding="async"
- Use an
srcset
attribute, providing multiplew
variants, targeting 1x, 1.5x, 2x variations. - Use a
sizes
attribute describing the optimal sizing (optionally using a simplified value of295px
). - Use an
alt
attribute of the image caption.
Change History (4)
Note: See
TracTickets for help on using
tickets.
Fixed in [18228-dotorg]:
Of the suggestions, I only didn't implement the
sizes
attribute since the grid images are always rendered at the same dimensions.