youtube-embed

Community

Lazy-load YouTube videos for blazing performance.

AuthorSoborbo
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill enables lazy-loading YouTube videos by swapping a poster and play button for an iframe only after user interaction.

Core Features & Use Cases

  • Facade pattern: Poster + play button, no iframe until click.
  • Privacy-first: Uses youtube-nocookie.com to protect viewer data.
  • Engagement tracking: GA4 video_play event fired on click.
  • Schema markup: VideoObject embedding for rich results.
  • Use cases include marketing landing pages, product demos, and content hubs where performance matters.

Quick Start

  • Import VideoFacade in your Astro project and supply a videoId, title, and a local poster asset.
  • Place the component in your page where the video should appear.
  • On user click, the poster is replaced with an autoplaying iframe, a GA4 event is sent, and a VideoObject schema is added to the page.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: youtube-embed
Download link: https://github.com/Soborbo/claudeskills/archive/main.zip#youtube-embed

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.