YouTube Facade

YouTube embeds

without the weight.

pageflare replaces heavy YouTube iframes with lightweight placeholders. The real player loads only when visitors click play — saving 500kb+ per embed.

500kb+
Saved per embed
Click to play
Load on demand
Zero
Third-party scripts on load
Capabilities

Same videos,
fraction of the weight.

500kb+ Saved Per Embed

A single YouTube iframe loads over 500kb of JavaScript, CSS, and tracking scripts. The facade replaces all of that with a thumbnail and a play button.

Click to Play

The real YouTube player loads only when a visitor clicks the play button. No wasted bandwidth for visitors who never watch the video.

Native Thumbnail

Uses the video's actual YouTube thumbnail as the poster image. Visitors see exactly what they expect — a familiar YouTube preview.

Privacy Friendly

No data is sent to Google until the visitor clicks play. No tracking cookies, no background requests — respects your visitors' privacy.

Multiple Embeds? No Problem

Pages with multiple YouTube videos benefit the most. Each saved embed is another 500kb+ of JavaScript your visitors don't need to download.

Zero Configuration

Automatically detects YouTube iframes and replaces them. No shortcodes, no plugins, no manual work.

How it works

Detect. Replace.
Play.

1

Detect

pageflare finds every YouTube iframe on the page — standard embeds, nocookie variants, and playlist links.

2

Replace

Each iframe is swapped with a lightweight thumbnail and play button. The page loads 500kb+ lighter per embed.

3

Play

When a visitor clicks the play button, the real YouTube player is injected and starts playing. Full functionality, on demand.

Get started

Lighter pages, same videos.

Install the CLI, point it at your build output, and see results in under two seconds.