Optimize about page images - #13025
Conversation
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
@peterwilsoncc Since the majority of the images are downloaded from the I think it would be better to land the optimized version. |
| min-height: clamp(10rem, 25vw, 18.75rem); | ||
| border-radius: var(--border-radius); | ||
| background-image: url(https://s.w.org/images/core/7.1/about-header-default.webp?ver=20260804); | ||
| background-image: url(https://peterwilson.cc/content/_wp_71_about/about-header-default.svg?ver=20260813); |
There was a problem hiding this comment.
It seems that it is recommended to place these SVG images locally.
https://make.wordpress.org/core/handbook/about/release-cycle/preparing-the-about-page/#:~:text=The%20following%20are%20exported%20as%20SVG%20and%20saved%20locally.
Alternatively, we could inline the CSS, as was done for the 6.8 and 6.9 releases.
Replaces the about page images with optimized versions.
Caution
For testing purposes, I've deployed the about page images to my server. These will be deleted so do not commit until these have been deployed on to the WordPress.org CDN
Trac ticket: Core-65854
For testing purposes, force RTL versions of the headers by running
document.documentElement.setAttribute( 'dir', 'rtl' );in your browser console ordocument.documentElement.removeAttribute( 'dir' );to force LTR versions.Optimization details
Squoosh settings: WebP, Effort 6 (max), Quality 80
SVGO: Defaults used on https://jakearchibald.github.io/svgomg/
When comparing the webp images in Squoosh, I was viewing the images at 50% size on a retina screen as that's the way they will be viewed on the page as they are generated at 2x.
The size references refer to the amount of data transferred rather than the raw size of the image.
Use of AI Tools
Nope.
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.