Lite YouTube Embed is a lightweight custom element that replaces the standard YouTube iframe with a much faster placeholder until a user interacts with it. It is built for websites that need embedded YouTube videos without the heavy performance cost of loading the full player immediately. The component visually behaves like a normal YouTube embed, but it delays loading expensive iframe resources until playback is requested. Developers can install it from npm or use the source files directly in a project. It supports progressive enhancement, custom poster images, visible titles, YouTube player parameters, and access to the YouTube Iframe Player API. It is especially useful for performance-focused websites, landing pages, blogs, documentation sites, and media-heavy pages where faster loading improves the user experience.
Features
- Fast YouTube embed replacement
- Custom HTML element usage
- Deferred iframe loading
- Progressive enhancement support
- Custom poster image support
- YouTube player parameter support