Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

YouTube embed should show fallback link when JavaScript is disabled #6193

Closed
simevidas opened this issue May 3, 2023 · 3 comments · May be fixed by GoogleChrome/webdev-infra#83
Closed

YouTube embed should show fallback link when JavaScript is disabled #6193

simevidas opened this issue May 3, 2023 · 3 comments · May be fixed by GoogleChrome/webdev-infra#83
Assignees
Labels
feature request New functionality for the site. P2 A normal priority task. This is the default for most issues.

Comments

@simevidas
Copy link
Contributor

Steps to reproduce:

  1. disable JavaScript in your browser
  2. go to https://developer.chrome.com/blog/new-in-chrome-113/

There will be a large gap where the video would normally render. There is no “Watch on Youtube” link or anything like that.

Screenshot 2023-05-04 at 00 20 47

@simevidas simevidas added bug Something on the site is broken! P2 A normal priority task. This is the default for most issues. labels May 3, 2023
@JohnPaulGummapu
Copy link

If the video link disappears when JavaScript is turned off in your browser, it is likely that the link is being dynamically generated or modified using JavaScript.

When JavaScript is turned off, any JavaScript code on the page will not be executed, which means that any dynamically generated content will not be displayed. This can include links, images, and other elements that are generated or modified using JavaScript.

To ensure that your page is still usable and accessible when JavaScript is turned off, it's a good idea to provide alternative content or functionality that does not depend on JavaScript. This can include providing static links or content that is displayed regardless of whether JavaScript is enabled or not.

You can also use techniques such as progressive enhancement or graceful degradation to provide a more robust and inclusive user experience that works well regardless of the user's browser or settings.

@tunetheweb
Copy link
Member

Youtube does not work without JavaScript enabled. So a link would be of limited use IMHO.

The space at least shows that something as missing which indicates the full contents have not loaded.

@simevidas
Copy link
Contributor Author

Youtube does not work without JavaScript enabled. So a link would be of limited use IMHO.

If the user

  1. blocks scripts from youtube.com when YouTube is embedded on another site, but
  2. allows scripts from youtube.com when opening YouTube in a browser tab,

then the user would find the fallback link useful.

@github-project-automation github-project-automation bot moved this from 🧐 In Review to ✅ Done in web.dev & DCC: Sprint board with Tokyo Dec 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature request New functionality for the site. P2 A normal priority task. This is the default for most issues.
Projects
7 participants
@simevidas @rachelandrew @tunetheweb @matthiasrohmer @ShayPunter @JohnPaulGummapu and others