[wp-trac] [WordPress Trac] #59352: Inline images inserted in the block editor can erroneously get fetchpriority=high

WordPress Trac noreply at wordpress.org
Tue Jan 16 17:01:45 UTC 2024


#59352: Inline images inserted in the block editor can erroneously get
fetchpriority=high
---------------------------------------------+--------------------------
 Reporter:  westonruter                      |       Owner:  flixos90
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  6.5
Component:  Media                            |     Version:  6.3
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  performance
---------------------------------------------+--------------------------
Changes (by flixos90):

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


Comment:

 In [changeset:"57294" 57294]:
 {{{
 #!CommitTicketReference repository="" revision="57294"
 Media: Consider inline image CSS width to backfill `width` and `height`
 attributes.

 Prior to this changeset, WordPress core would use the original image size,
 which in the particular case of inline images would be severely off, as
 they are usually very small. This could lead to incorrect application of
 `fetchpriority="high"` and other performance optimizations.

 Props westonruter, flixos90, joemcgill, mukesh27.
 Fixes #59352.
 }}}

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


More information about the wp-trac mailing list