Reduce Unused Javascript of YouTube embed

Hey guys, I have a YouTube embed video on the home page, when the play icon is clicked, it opens a popup using interactions.

When I pull the website through PageSpeedInsights I get a really bad mobile score of round 25-30 and the main issue is “Reduce Unused Javascript” where I get the embed JS, but it’s being used, just not on first load.

It’s an iframe in a Embed block.

I followed this tutorial to defer the scripts but nothing changed.

I checked the whole forum but I didn’t find any topic similar to mine.

I hope someone can help me out!


Here is my site Read-Only: https://preview.webflow.com/preview/salesroom?utm_medium=preview_link&utm_source=designer&utm_content=salesroom&preview=ab9474a1280623b66c5035662d98a99c&workflow=preview

Here is the link to the website: https://salesroom.webflow.io/

Same problem here …
Anyone with a solution ?

If you can tolerate a double click to play just use a lightbox with a video. Your page speed will dramatically increase! There are custom code methods you can explore as well.

My problem also,… would like to see a solution

Try this (LazySizes.Js)

I have the same problem. In Wordpress it was working much better.

Hey Webflow team, please make video embedding lightweight with no impact into the serp position.