puredazzle / wp-lite-youtube-embed
A WordPress plugin for displaying YouTube videos in a lightweight and responsive way.
Package info
github.com/puredazzle-org/wp-lite-youtube-embed
Type:wordpress-muplugin
pkg:composer/puredazzle/wp-lite-youtube-embed
v1.0.3
2026-06-05 19:49 UTC
Requires
- php: ^8.2
README
A WordPress mu-plugin that replaces standard YouTube oEmbed iframes with the lightweight <lite-youtube> custom element for faster page loads.
Requirements
- PHP 8.2+
- WordPress 6.1+
Installation
Install via Composer:
composer require puredazzle/wp-lite-youtube-embed
Development
pnpm install pnpm dev # Vite dev server on localhost:5174 pnpm build # Production build to /build
Settings
Navigate to Settings > Lite YouTube Embed in the WordPress admin to clear the oEmbed cache. This forces WordPress to re-fetch all embeds so existing posts pick up the lite player.
Credits
This plugin uses lite-youtube-embed by Paul Irish.