Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ Feature Request ] : Add loading="lazy" on the Youtube embed as default #92

Open
LanguageXange opened this issue Apr 19, 2023 · 0 comments

Comments

@LanguageXange
Copy link

LanguageXange commented Apr 19, 2023

Not sure if this is the right place to ask. please let me know if I should post this on a different repo

Adding loading="lazy" on iframe drastically boost the performance score in Page Speed Insights.
I tested it on one of my page with multiple YT videos and saw a massive improvement.
https://web.dev/iframe-lazy-loading/

Could you add loading="lazy" in the iframe ?

It would benefit people who are embedding YT videos on their websites and provide a better user experience.
Content editors don't need to modify anything as well. Simply copy paste into CMS.

Currently it's like this
current

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant