# paulirish/lite-youtube-embed

A faster youtube embed.

Repository: https://github.com/paulirish/lite-youtube-embed
Canonical: https://ross.abutalabs.com/products/lite-youtube-embed
Homepage: https://paulirish.github.io/lite-youtube-embed/
Language: HTML
License: NOASSERTION
License Family: other
Last push: 2025-11-10T19:06:57+00:00

## Health v2 (maintenance only)
Score: 51/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 51, release rhythm 24, longevity 100
- inputs: {"age_days": 2495, "days_push": 296, "days_rel": 296, "gap_med": null, "n_releases_24m": 1}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6347, forks 296 (observed 2026-08-28T04:09:42.712057+00:00)

## What it is
A lightweight web component (custom element) that renders YouTube embeds using a static facade with a poster image, loading the actual iframe only on click. It claims to render roughly 224x faster than a standard YouTube iframe embed and uses youtube-nocookie.com for better privacy.

## Use cases
- embed youtube videos faster on my website
- reduce page load time from youtube iframes
- lazy load youtube video embeds
- privacy-friendly youtube embed without tracking cookies
- replace slow youtube iframe with lightweight web component
- add youtube video to blog post without hurting performance

## When to choose
- you embed YouTube videos on content-heavy pages where load performance matters
- you want a drop-in custom element with progressive enhancement support
- you want to avoid YouTube tracking cookies for your visitors

## When to avoid
- you need full YouTube player controls or iframe JavaScript API before user interaction
- you embed videos from platforms other than YouTube
- your project cannot include custom element JavaScript

## Facets
- artifact type: library
- maturity: active
- function: ui-components, frontend-framework
- domain: web-development, frontend, media, performance
- platform: browser
- tags: web-components, custom-element, youtube-embed, performance-optimization, lazy-loading, privacy-friendly, web-server

## Member repositories
- paulirish/lite-youtube-embed (main) score 51

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:42.712057+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:46:07.574467+00:00, confidence not recorded.
  - readme: https://github.com/paulirish/lite-youtube-embed (fetched 2026-08-28T04:09:42.712057+00:00, sha a654c5dd0ea9)
  - homepage: https://paulirish.github.io/lite-youtube-embed/ (fetched 2026-08-29T08:42:22.699280+00:00, sha e21435d6528e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
