On this page
What this issue is
A video embed is usually an <iframe> pointing at YouTube, Vimeo, Wistia or a similar host. The moment the browser sees it, it opens a connection to that host and downloads the player code, fonts, styles and sometimes ad or analytics scripts. This happens whether or not the visitor ever presses play.
A facade is a stand-in. It looks like the player (a poster image and a play button) but is just an image and a few lines of code. When the visitor clicks, a script swaps it for the real iframe, which starts playing straight away.
- Page opensBrowser starts loading the page
- Iframe requestedFull player and scripts download
- Main thread busyForm and buttons respond late
- Visitor leavesNever pressed play
With a normal embed the heavy player loads before any click. With a facade it only loads after one.
Why it costs you leads or sales
Most visitors to a landing page do not play the video. They still pay for it in loading time. A heavy player competes with your headline, hero image, form and checkout button for bandwidth and processing, especially on mobile connections. Slower pages tend to lose more visitors before they act.
Third-party players can also set cookies and send requests to other domains before the visitor has made a consent choice. That adds privacy and consent questions on top of the speed cost.
Example: illustrative numbers only. Real sizes vary by video host, player version and page.
How to check if your site has it
Look at the page source
View source and search for
youtube.com/embed,youtube-nocookie.com,player.vimeo.comorfast.wistia. An<iframe>with one of these and no facade means the player loads on page open.Open the Network tab
In Chrome DevTools, open Network, reload the page without touching the video, and filter by the video host name. Any requests there mean the player loaded before a click.
Run a speed test
Run Lighthouse in DevTools or PageSpeed Insights. Look for advice such as reducing third-party code or using a facade for third-party embeds.
How to fix it
The fix is to show a thumbnail first and load the iframe on click. Which route is easiest depends on your platform. Below the platform steps there is a plain HTML and JavaScript version that works anywhere you can edit code.
Use a built-in or plugin option
Check your performance or caching plugin for a setting that replaces YouTube iframes with a preview image (often called lazy load for iframes and videos, or replace YouTube with preview). Menu names differ by plugin.
Or use a lite embed block
If your theme or page builder offers a video widget with an image overlay or click-to-play option, switch to it and set a custom thumbnail.
Test the page
Clear the cache, reload, and check the Network tab to confirm no video host requests happen before a click.
Replace the iframe in the theme
In Online Store > Themes > Edit code, find the section or snippet that outputs the video iframe. Replace it with the facade code below, using your video ID.
Check theme settings first
Some themes have a video section with a cover image option that only loads the player on click. If yours does, use it instead of custom code.
Know the limit
GTM cannot turn an existing iframe into a facade without custom HTML hacks. Fix the embed in the page or theme instead.
If the embed is injected by a tag
If a Custom HTML tag inserts the iframe, change it to insert the facade markup and script instead, and trigger it on the pages that need it.
Use the Video element carefully
Webflow's Video element loads the player iframe. For a facade, replace it with an Embed element holding the facade code below.
Publish and test
Publish to staging, then check the Network tab for video host requests before a click.
Use a custom code element
In the funnel or website builder, replace the video element with a Custom JS/HTML element containing the facade code below.
Preview the page
Open the live page URL and confirm the thumbnail shows and the video plays after a click.
Prefer a cover image
Where your Wix video element lets you set a cover image or click-to-play behaviour, use it so the player starts on click. Options vary by element.
Or use an HTML embed
Add an Embed code element and paste the facade code below. Check how it looks on mobile.
Use a Code block
Replace the Video block with a Code block holding the facade code below. Code blocks need a plan that allows custom code.
Check the thumbnail
Confirm the preview image loads and the video starts after one click.
Replace the iframe with the facade markup
Use the snippet below, or a maintained open-source lite embed component for YouTube or Vimeo.
Set size to avoid layout shift
Give the container a fixed aspect ratio so the page does not jump when the player loads.
<div class="yt-facade" data-id="VIDEO_ID" style="position:relative;aspect-ratio:16/9;background:#000;cursor:pointer;max-width:720px">
<img src="https://i.ytimg.com/vi/VIDEO_ID/hqdefault.jpg" alt="Play video" loading="lazy" style="width:100%;height:100%;object-fit:cover">
<button type="button" aria-label="Play video" style="position:absolute;inset:0;margin:auto;width:68px;height:48px;border:0;border-radius:12px;background:#f00;color:#fff;font-size:22px">▶</button>
</div>
<script>
document.querySelectorAll('.yt-facade').forEach(function (el) {
el.addEventListener('click', function () {
var iframe = document.createElement('iframe');
iframe.src = 'https://www.youtube-nocookie.com/embed/' + el.dataset.id + '?autoplay=1';
iframe.allow = 'autoplay; encrypted-media; picture-in-picture';
iframe.allowFullscreen = true;
iframe.title = 'Video player';
iframe.style.cssText = 'width:100%;height:100%;border:0;position:absolute;inset:0';
el.innerHTML = '';
el.appendChild(iframe);
}, { once: true });
});
</script>Full player iframe
- Player and scripts load on page open
- Requests to the video host before any click
- Competes with form and button for resources
Facade
- One thumbnail image loads
- Player loads only after a click
- Page is ready for visitors sooner
How to confirm it's fixed
- Reload with DevTools Network open and no click: no requests to youtube.com, youtube-nocookie.com, vimeo.com or similar.
- Click the thumbnail: the video loads and plays.
- Test on a phone: the play button is easy to tap and the layout does not jump.
- Re-run PageSpeed Insights and compare page weight and the third-party advice.
- Tab to the play button with the keyboard and press Enter: the video starts.
How to prevent it happening again
- Make the facade the standard video component in your theme or page template.
- Tell editors not to paste raw iframe embed codes into pages.
- Run a speed test after adding any new video or page builder widget.
- Review the Network tab for third-party hosts when you publish a new landing page.
How FunnelGuard handles this
FunnelGuard does not check for this yet. Detecting full video players that should be facades is a possible future check, not something it does today.
What FunnelGuard does do is run your real customer journeys on a schedule, such as lead forms, checkouts and booking buttons, and check each step, the tracking hits and whether test leads arrive. If a slow page ends up breaking a step, that failure is what it reports, with a screenshot and a likely cause. It will not tell you that a video embed is the reason the page is heavy.
To watch for this yourself, run PageSpeed Insights or Lighthouse on your key landing pages after each change, and check the Network tab for video host requests before any click. A free plan covers 1 site and 2 journeys with daily checks if you want the journeys themselves watched, and a free read-only website audit is also available.
Questions people ask
Why is my YouTube embed slowing down my page?
A standard YouTube iframe loads the full player and its scripts when the page opens, whether or not anyone plays the video. That adds download size and processing work. A facade avoids this by loading only a thumbnail until the visitor clicks.
What is a video facade?
A video facade is a lightweight placeholder, usually a thumbnail image and a play button, that stands in for the real video player. When the visitor clicks it, a small script swaps in the actual iframe and starts the video. The heavy player code is only downloaded when it is needed.
How do I lazy load a YouTube video?
Adding loading="lazy" to the iframe delays loading until it is near the viewport, which helps for videos far down the page. For videos near the top, a click-to-load facade saves more, because the player does not load until the visitor presses play.
Does a facade hurt video plays or conversions?
It adds no extra step for the visitor beyond the click they would make anyway, and the video starts straight away after it. Use a clear thumbnail and play button so it still looks like a video. Test on mobile to confirm one tap starts playback.
Should I use youtube-nocookie.com for embeds?
The youtube-nocookie.com domain is YouTube's privacy-enhanced mode, which avoids storing visitor information through the embed until they play the video. It is a good choice inside a facade. It does not replace getting consent where your rules require it.
How do I check if my page loads the video player before a click?
Open Chrome DevTools, go to the Network tab, reload the page without touching the video, and filter by youtube, vimeo or your video host. If requests appear, the player is loading eagerly. Lighthouse also flags heavy third-party embeds.
Does FunnelGuard detect video embeds that should be facades?
No. FunnelGuard does not check for this yet. It runs your customer journeys and checks steps, tracking and test leads, so use PageSpeed Insights or Lighthouse to watch for heavy video embeds.
Related issues
- PRF-076Total page weight over 3 MB on a landing pageFix guide
- PRF-077Page weight jumped after a change (new unoptimised asset)Fix guide
- PRF-078More than 150 requests on one pageFix guide
- PRF-083Third-party scripts make up over half the page weightFix guide
- PRF-085Map embed (Google Maps) loaded eagerly on every pageFix guide
- PRF-084GIF animations instead of videoFix guide