[wp-meta] [Making WordPress.org] #4214: Theme preview images are loaded inefficiently.
Making WordPress.org
noreply at wordpress.org
Thu Jan 16 08:00:57 UTC 2020
#4214: Theme preview images are loaded inefficiently.
---------------------------------------------+---------------------
Reporter: jonoaldersonwp | Owner: (none)
Type: defect | Status: new
Priority: lowest | Milestone:
Component: Theme Directory | Resolution:
Keywords: seo speed/performance has-patch |
---------------------------------------------+---------------------
Comment (by jonoaldersonwp):
Great patching!
Apologies, though, I made a mistake in the sizes markup. I've corrected it
below (removing the `full` size on the fallback)!
```
<picture>
<source media="(min-width: 782px)" srcset="{{image}}, {{image-2x}} 2x">
<source media="(min-width: 481px) and (max-width: 782px)" srcset
="{{image-large}}, {{image-large-2x}} 2x">
<source media="(min-width: 401px) and (max-width: 480px)" srcset
="{{image-medium}}, {{image-medium-2x}} 2x">
<source media="(max-width: 400px)" srcset="{{image-small}}, {{image-
small-2x}} 2x">
<img src="{{image}}" srcset="{{image-2x}} 2x" alt="{{ALT}}">
</picture>
`
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/4214#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list