[wp-trac] [WordPress Trac] #58770: Fetch priority and lazy loading attributes not applying correctly in block themes
WordPress Trac
noreply at wordpress.org
Mon Jul 10 18:34:13 UTC 2023
#58770: Fetch priority and lazy loading attributes not applying correctly in block
themes
--------------------------+--------------------------
Reporter: spacedmonkey | Owner: flixos90
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.4
Component: Media | Version: 5.9
Severity: normal | Resolution:
Keywords: | Focuses: performance
--------------------------+--------------------------
Comment (by spacedmonkey):
@flixos90 The screenshots, so the what is happening, so I would look at
those.
I believe there are two issues here.
1. The same image is being processed a number of times, as different
filters are applied at different times. I believe the same image might be
being processed 2 or 4 times.
2. Hardcoded images in the templates do not have height and width
attributes on the image blocks.
Here is an example of where there are [https://github.com/WordPress
/wordpress-develop/blob/f933aa3616aa8d49bdd67886e4af287579093c25/src/wp-
content/themes/twentytwentytwo/inc/patterns/header-small-dark.php#L25
hardcoded] images in the TT2 theme. And another
[https://github.com/wpengine/frost/blob/099614b54db5f01855e9b261519dbf1c8d3c6524/patterns
/general-hero-one-column.php#L10 example] from frost theme.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58770#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list