# As a condition of accessing this website, you agree to abide by the following # content signals: # (a) If a content-signal = yes, you may collect content for the corresponding # use. # (b) If a content-signal = no, you may not collect content for the # corresponding use. # (c) If the website operator does not include a content signal for a # corresponding use, the website operator neither grants nor restricts # permission via content signal with respect to the corresponding use. # The content signals and their meanings are: # search: building a search index and providing search results (e.g., returning # hyperlinks and short excerpts from your website's contents). Search does not # include providing AI-generated search summaries. # ai-input: inputting content into one or more AI models (e.g., retrieval # augmented generation, grounding, or other real-time taking of content for # generative AI search answers). # ai-train: training or fine-tuning AI models. # ANY RESTRICTIONS EXPRESSED VIA CONTENT SIGNALS ARE EXPRESS RESERVATIONS OF # RIGHTS UNDER ARTICLE 4 OF THE EUROPEAN UNION DIRECTIVE 2019/790 ON COPYRIGHT # AND RELATED RIGHTS IN THE DIGITAL SINGLE MARKET. # BEGIN Cloudflare Managed content User-Agent: * Content-signal: search=yes,ai-train=no Allow: / User-agent: Amazonbot Disallow: / User-agent: Applebot-Extended Disallow: / User-agent: Bytespider Disallow: / User-agent: CCBot Disallow: / User-agent: ClaudeBot Disallow: / User-agent: Google-Extended Disallow: / User-agent: GPTBot Disallow: / User-agent: meta-externalagent Disallow: / # END Cloudflare Managed Content EmbedLite — A drop-in, open-source replacement for YouTube embeds
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/aqz-KE-bpKQ">+ <iframe src="https://www.embedlite.com/embed/aqz-KE-bpKQ">

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.

Videos served so far

0

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. In fact, it's how Google itself embeds videos on their official company blog.