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

Lighthouse: Links are not crawlable with <YouTube> #116

Open
jrouleau opened this issue Apr 10, 2024 · 5 comments
Open

Lighthouse: Links are not crawlable with <YouTube> #116

jrouleau opened this issue Apr 10, 2024 · 5 comments

Comments

@jrouleau
Copy link
Contributor

Introduced by #102

The play button is now an <a> elements that has its href attribute removed thereby creating the following issues with Lighthouse scores:

Links are not crawlable

Search engines may use href attributes on links to crawl websites. Ensure that the href attribute of anchor elements links to an appropriate destination, so more pages of the site can be discovered. Learn how to make links crawlable

@delucis
Copy link
Owner

delucis commented Apr 10, 2024

Thanks for the issue! I noticed this as an accessibility problem too: links without href are not focusable, so the play button can’t be reached with the keyboard.

I think this will need fixing in https://github.com/paulirish/lite-youtube-embed which we depend on — maybe by replacing the link with a button when present.

@delucis
Copy link
Owner

delucis commented Apr 10, 2024

Update: have a fix on a local branch. Will open an upstream PR tomorrow.

@delucis
Copy link
Owner

delucis commented Apr 11, 2024

Opened a PR here: paulirish/lite-youtube-embed#177

Let’s see if we get a response and if not we can look to revert the progressive enhancement pattern in astro-embed or use my fork of lite-youtube-embed.

@jasikpark
Copy link
Contributor

jasikpark commented Jul 2, 2024

Potentially off-topic, but it'd be great if the youtube component survived RSS webpage content feed reader sanitization.

Youtube component is totally stripped from article

image

Youtube embed is visible on the raw webpage

image

I think a fallback might be needed?

@delucis
Copy link
Owner

delucis commented Jul 2, 2024

@jasikpark I think that’s unrelated — see #59

Depends a bit how you’re rendering the RSS feed I suspect.

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

3 participants