insin / astro-lazy-youtube-embed

Embed YouTube videos with a static placeholder which only embeds when you click

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add privacy-enhaced support for embeds

inakicalvo opened this issue · comments

Hi @insin!

I'm using your package but manually editing it to support privacy-enhanced embeds.

Here's the link to the docs. And the main change needed to make it work:

Change the domain for the embed URL in your HTML from https://www.youtube.com to https://www.youtube-nocookie.com.

If you think it's worth it, I could try to write the logic to make this work and submit a PR.

Let me know if you are interested.

By the way, thanks for publishing this package. It helped me a lot with improving the Core Web Vitals on a site I built 🙏