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

Closed
jrouleau opened this issue Apr 10, 2024 · 9 comments · Fixed by #138
Closed

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

jrouleau opened this issue Apr 10, 2024 · 9 comments · Fixed by #138

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.

@ARkrOSClou
Copy link

hey, any progress here?
pagespeed
image

@jasikpark
Copy link
Contributor

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

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

For me, this is the https://feedbin.com service ingesting the regular html of the webpage, since I don't render my RSS with content included, since I use Markdoc and need to sort out how to use the Container API with that still

@LeFede
Copy link

LeFede commented Jul 31, 2024

hey, any progress here? pagespeed image

x2 here! waiting for the fix

@delucis
Copy link
Owner

delucis commented Aug 11, 2024

Fixed in the latest release of @astro-community/astro-embed-youtubev0.5.3.

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

Successfully merging a pull request may close this issue.

5 participants