Opened 4 years ago
Closed 4 years ago
#5986 closed defect (bug) (fixed)
Improve image markup
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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
srcsetattribute, providing multiplewvariants, targeting 1x, 1.5x, 2x variations. - Use a
sizesattribute describing the optimal sizing (optionally using a simplified value of295px). - Use an
altattribute 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
sizesattribute since the grid images are always rendered at the same dimensions.