[wp-trac] [WordPress Trac] #52139: Twenty Twenty-One: Skip loading attribute on featured image instead of loading=eager

WordPress Trac noreply at wordpress.org
Mon Dec 21 18:49:38 UTC 2020


#52139: Twenty Twenty-One: Skip loading attribute on featured image instead of
loading=eager
-----------------------------------+----------------------
 Reporter:  flixos90               |       Owner:  desrosj
     Type:  defect (bug)           |      Status:  closed
 Priority:  normal                 |   Milestone:  5.6.1
Component:  Bundled Theme          |     Version:  5.6
 Severity:  normal                 |  Resolution:  fixed
 Keywords:  has-patch fixed-major  |     Focuses:
-----------------------------------+----------------------
Changes (by desrosj):

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


Comment:

 In [changeset:"49861" 49861]:
 {{{
 #!CommitTicketReference repository="" revision="49861"
 Twenty Twenty-One: Do not specify `loading=“eager”` for single post
 thumbnails.

 While `loading=“eager”` is a supported alternative to omitting the
 attribute entirely, browsers follow the value of this attribute explicitly
 when specified.

 Specifying `eager` would prevent the user from receiving any additional
 potential benefits implemented at the browser level, such as further
 mechanisms to automatically decide which elements to lazy-load.

 Props flixos90, ryelle, poena.
 Merges [49860] to the 5.6 branch.
 Fixes #52139.
 }}}

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


More information about the wp-trac mailing list