[wp-trac] [WordPress Trac] #52768: WordPress post URL oEmbed rendering blocked by iframe lazy-loading

WordPress Trac noreply at wordpress.org
Thu Mar 11 00:17:48 UTC 2021


#52768: WordPress post URL oEmbed rendering blocked by iframe lazy-loading
---------------------------+--------------------------
 Reporter:  SirStuey       |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  5.7.1
Component:  Embeds         |     Version:  5.7
 Severity:  normal         |  Resolution:
 Keywords:  needs-testing  |     Focuses:  performance
---------------------------+--------------------------

Comment (by SirStuey):

 @adamsilverstein

 Thank you! I ruled out any customization or server-specific influences,
 and the issue seems connected to how different browsers treat the
 WordPress URL embed with iframe lazy loading activated.

 Attached are screenshots of the
 [https://make.wordpress.org/core/2021/02/23/wordpress-5-7-field-guide/
 Wordpress 5.7 Field Guide] showing how it displays differently in Windows
 10 chrome and firefox browsers. Chrome does support iframe lazy loading,
 but something is preventing the iframe from ever loading.

 I used Felix Arntz' customization functions to disable the iframe lazy-
 loading for testing, and that's where it became clear 5.7's iframe lazy
 loading default was the affecting change.

 I'm using the second function now, to disable iframe lazy loading for my
 own Wordpress post URL embeds.

 @flixos90 - thank you for providing those customization functions! (The
 second function example 'skip_loading_lazy_youtube_iframes' is missing a
 closing parenthesis at the end of the if statement on line 2. I'm sorry if
 this is the wrong place to mention this, I didn't want to leave a public
 comment on the post itself and couldn't find a way to message you
 privately.)

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


More information about the wp-trac mailing list