• Resolved sitebizniz

    (@sitebizniz)


    Hi,

    Wordpress allows a Youtube link to be pasted directly in the content and it takes care of constructing the iframe html.

    When I look at the resulting html with lazysizes, the class seems to be missing and the video does not appear:

    <iframe width="742" height="417" data-src="https://www.youtube.com/embed/Udz133n_8Qo?feature=oembed" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>

    Otherwise the plugin is working great for me, but I can’t use it without being able to play videos.

Viewing 1 replies (of 1 total)
  • Plugin Author Patrick Sletvold

    (@16patsle)

    Thanks for reporting! I happened to discover this while embedding videos myself, and as of today, a fix is available. If you download the latest version, 0.2.0, lazy loading of elements without classes (like iframe embeds from YouTube) should be working properly. Let me know if you still have issues.

Viewing 1 replies (of 1 total)

The topic ‘iframe class attribute missing’ is closed to new replies.