[wp-trac] [WordPress Trac] #58235: Enhance hero image loading performance with Fetchpriority

WordPress Trac noreply at wordpress.org
Wed Jul 5 22:33:24 UTC 2023


#58235: Enhance hero image loading performance with Fetchpriority
--------------------------------------+--------------------------
 Reporter:  flixos90                  |       Owner:  flixos90
     Type:  enhancement               |      Status:  reopened
 Priority:  high                      |   Milestone:  6.3
Component:  Media                     |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch needs-dev-note  |     Focuses:  performance
--------------------------------------+--------------------------
Changes (by flixos90):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Reopening due to a small bug that [56037] reintroduced after [55825] /
 #58089 had fixed it: Programmatically injected images within post content
 (`the_content` filter) should be skipped except when the `the_content`
 context is used so that they are only considered once, as part of the
 whole post content blob.

 [55825] fixed that, but then the refactoring as part of this ticket
 accidentally added the postprocessing logic call to that clause so that
 now such images may incorrectly receive `fetchpriority="high"` when they
 should not.

 See https://core.trac.wordpress.org/ticket/58681#comment:13, which
 originally discovered this regression.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58235#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list