Opened 3 years ago
Last modified 3 years ago
#5986 closed defect (bug)
Improve image markup — at Initial Version
Reported by: | jonoaldersonwp | Owned by: | |
---|---|---|---|
Milestone: | Priority: | high | |
Component: | Photo Directory | Keywords: | performance seo |
Cc: |
Description
Images in grid displays like the one on https://wordpress.org/photos/ and https://wordpress.org/photos/photo/ 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.
Note: See
TracTickets for help on using
tickets.