EmbedLite

EmbedLite

A drop-in, open-source replacement for YouTube embed iframes. Lightning fast, SEO-optimized, and privacy-friendly.

GitHub Try it now Quick docs

Why EmbedLite?

YouTube's embed iframe loads scripts, tracking, and heavy assets even if the user never presses play. This hurts load times, SEO, and the overall user experience.

EmbedLite swaps the heavy iframe for a lightweight placeholder that loads the real YouTube player only on demand.

Here's how it works:

-- <iframe src="https://www.youtube.com/embed/..."
++ <iframe src="https://www.embedlite.com/embed/..."

Yes, that's literally it.

Playground

Paste a YouTube URL (short or long) and get a ready-to-copy embedlite.com iframe.

Demo

Usage

Simply swap the domain in any YouTube iframe:

-- <iframe src="https://www.youtube.com/embed/..."
++ <iframe src="https://www.embedlite.com/embed/..."

All other query params are passed straight to the YouTube player.

Examples

https://www.embedlite.com/embed/dQw4w9WgXcQ?controls=0&mute=1&start=30&end=120
https://www.embedlite.com/embed/dQw4w9WgXcQ?autoplay=true&title=Rick%20Astley

What about loading="lazy" ?

The native attribute loading="lazy" only tells the browser to postpone the initial network request for the full YouTube iframe until it scrolls near the viewport — nothing more.

EmbedLite keeps the page lightweight by serving nothing but a static thumbnail (≈ 15 KB) until the user clicks, so no large downloads or trackers run without real intent.

Disclaimer

EmbedLite is not affiliated with YouTube or Google. It uses the official YouTube embed player and complies with YouTube's Terms of Service by loading the standard YouTube iframe only after user interaction.