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

Injecting <div> in <head> is bad and causing SEO errors #271

Open
zampettim opened this issue Oct 11, 2023 · 1 comment
Open

Injecting <div> in <head> is bad and causing SEO errors #271

zampettim opened this issue Oct 11, 2023 · 1 comment

Comments

@zampettim
Copy link

We are using a Wordpress Plugin that utilizes fitvids.js as part of its optimization. Recently, SEO crawlers and other tools have started to highlight the use of

tags in the tag as bad.

It seems that the fitvid.js behavior of injecting into the tag was to resolve an IE issue, but with IE being discontinued, it would be great if this was removed or provide a way to prevent this behavior.

@davatron5000
Copy link
Owner

I would recommend NOT using FitVids or that plugin anymore actually. Depending on your usecases, I would just add a CSS aspect-ratio to the videos. It does the same thing.

https://codepen.io/davatron5000/pen/JjwzMWm??editors=1010

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

2 participants