[wp-trac] [WordPress Trac] #58773: Lazy Load oEmbed iframes

WordPress Trac noreply at wordpress.org
Mon Jul 10 20:52:32 UTC 2023


#58773: Lazy Load oEmbed iframes
-------------------------------------+-------------------------------------
 Reporter:  adamsilverstein          |       Owner:  adamsilverstein
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  6.4
Component:  Embeds                   |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-testing has-patch  |     Focuses:  performance,
  has-unit-tests                     |  sustainability
-------------------------------------+-------------------------------------

Comment (by adamsilverstein):

 Note in [attachment:"before-change.jpg"] a default YouTube embed does not
 contain a loading attribute (on trunk).

 With the patch applied in [attachment:"lazy.jpg"] we see the
 loading="lazy" attribute be ing applied.

 For a test post with a WordPress post embed, note that the `data-secret`
 attribute prevents the addition of the loading="lazy" attribute - see
 [attachment:"wpembed.jpg"].

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


More information about the wp-trac mailing list