GoogleChrome / webdev-infra

Apache License 2.0
37 stars 28 forks source link

Feat: added fallback text option to youtube embed #83

Open ShayPunter opened 1 year ago

ShayPunter commented 1 year ago

Fixes: #6193

Suggested changes:

How to test:

  1. Clone webdev-infra and checkout branch
  2. Clone d.c.c repository and checkout branch 6193_youtube_embed_should_show_fallback_link_when_js_is_disabled
  3. Setup a sym link between the webdev-infra and d.c.c repository
  4. Navigate to /blog/new-in-chrome-113/ with javascript enabled, you should see the youtube video as expected
  5. Disable javascript
  6. Refresh the page, you should now see the fallback text in place of the youtube video