[wp-meta] [Making WordPress.org] #5986: Improve image markup
Making WordPress.org
noreply at wordpress.org
Tue Jan 11 00:20:01 UTC 2022
#5986: Improve image markup
-----------------------------+---------------------
Reporter: jonoaldersonwp | Owner: (none)
Type: defect | Status: closed
Priority: high | Milestone:
Component: Photo Directory | Resolution: fixed
Keywords: performance seo |
-----------------------------+---------------------
Changes (by coffee2code):
* status: new => closed
* resolution: => fixed
Comment:
Fixed in [18228-dotorg]:
> Photo Directory theme: Improve image markup in grid display.
>
> * Add `loading="lazy"` and `decoding="async"`
> * Add `srcset` attribute.
> * Add `alt` attribute with the image caption.
> * Remove use of `figcaption` since it was always hidden.
>
> Props jonoaldersonwp, coffee2code.
> Fixes #5986.
Of the suggestions, I only didn't implement the `sizes` attribute since
the grid images are always rendered at the same dimensions.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/5986#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list