Table of contents
A standard YouTube video embed (iframe) loads 500–800 kB of scripts and a dozen or so network requests before the user even clicks play — often more than the entire rest of the page. The solution is a “facade”: a static thumbnail with a play button that loads the player only after a click. The result: the same video, ten times lower loading cost and better Core Web Vitals.
Thesis: a video on the homepage is the single most common cause of poor LCP we see
Video on a website makes sense: it shows your product, your workshop, your people. The problem isn't the video, but how it's embedded. A YouTube iframe loads the player, ad scripts, analytics, and Google fonts — all before any interaction. On a phone with a weak signal, that means seconds.
We measured this on a business website with one video in the "about us" section:
| Variant | Transfer before click | Requests | LCP (mobile) |
|---|---|---|---|
| Standard iframe | ~750 kB | 18–24 | 4,1 s |
Iframe with loading="lazy" | ~750 kB (but off-screen — later) | 18–24 | 2,9 s |
| Facade (thumbnail + play) | ~25 kB | 2 | 1,8 s |
| Self-hosted video (MP4, poster) | ~40 kB until click | 2 | 1,7 s |
Approximate values from PageSpeed measurements on a typical business website — yours will differ, but the proportions hold.
Solution 1: a facade — 90% of cases
A facade is a static thumbnail image (WebP, 20–40 kB) with a play button drawn on it. Clicking swaps the image for a real iframe and starts the video. A user who doesn't click — and that's most of them — doesn't load a single kilobyte of the player.
How to implement it in WordPress:
- Optimization plugins (most popular cache and performance plugins have a “replace YouTube iframe with a thumbnail” option — one click in the settings).
- Elementor: Video widget → “Image overlay” + “Play icon” + “Lazy load” — that's a facade, just under a different name.
- Manually: your own thumbnail + a few lines of JS that swap the element on click. A 20-minute job for a developer.
Important: host the thumbnail yourself rather than pulling it from YouTube (i.ytimg.com) — that's yet another connection to an external domain and a GDPR issue, which we cover below.
Solution 2: self-hosted video — when it makes sense
An MP4 file on your own server or CDN, embedded with the <video> tag with the poster and preload="none" attributes. Zero external scripts, full control, zero ads and no competitors' “recommended videos” at the end.
| Criterion | YouTube + facade | Self-hosting |
|---|---|---|
| Bandwidth cost | None (YouTube pays) | Your hosting / CDN |
| Compression and adaptive quality | Automatic | You have to prepare it yourself (multiple resolutions) |
| Ads and recommended videos | Yes (can be limited with parameters) | No |
| Video visibility on Google/YouTube | Yes — an additional traffic channel | No |
| GDPR | Requires consent before the player loads | No problem |
| Best for | Promo videos, tutorials | Short background loops, product videos, hero sections |
The rule: a video that should be found — YouTube. A video meant as a background or product showcase — your own file. A background video in the hero section (muted, a 5–10 s loop) should never come from YouTube.
Solution 3: don't embed — link
Surprisingly often the best option. A thumbnail with a link that opens the video in a new YouTube tab. Zero cost, zero GDPR worries, and a customer who really wants to watch will watch. Works well in footers, in articles, and in "see also" sections.
GDPR: an embedded YouTube video transfers data before consent
A standard iframe sends user data (IP address, cookies) to Google as soon as the page loads — no click, no consent. Since the Electronic Communications Law (Prawo komunikacji elektronicznej) took effect in November 2024, this is something your consent banner has to handle. A facade solves it naturally: the player loads only after a deliberate click, and youtube-nocookie.com mode further limits tracking. More context in our GDPR guide for websites.
Video and SEO — three things you can gain
- Structured data
VideoObject— a video embedded on a page with a name, description, thumbnail and duration can appear in search results as a rich result. Details in our article on schema.org in WordPress. - Transcript below the video — text that Google indexes; the video on its own isn't content for a search engine.
- Time on page — a real side effect of a well-chosen video; questionable as a direct ranking factor, but it does affect user behavior.
Implementation checklist
- [ ] Iframe replaced with a facade (plugin, Elementor or code)
- [ ] Thumbnail in WebP, hosted locally, max. 40 kB
- [ ]
nocookiemode and therel=0parameter (no recommended competitor videos) - [ ] Section background video — self-hosted MP4 file ≤ 2 MB, no sound,
preload="none", disabled on mobile - [ ] Transcript or summary below the video
- [ ]
VideoObjectin structured data - [ ] LCP measured before and after — Core Web Vitals in PageSpeed
From our experience
The most common scenario: a client has a YouTube video on the homepage "because it looks professional," and the mobile LCP is over 4 seconds. Switching to a facade takes 20 minutes of work and is usually the biggest single performance improvement you can make without a rebuild.
If your website has video and you don't know what it's costing you, a performance audit will show it in numbers, and as part of website optimization we implement facades and self-hosted video where it makes sense.
FAQ — video on your website
Yes — a standard iframe loads 500–800 kB of scripts before any interaction. A facade (a thumbnail with a play button) cuts that down to a few dozen kilobytes, because the player only loads after a click.
YouTube, if you want the video to be found in search and it runs longer than a minute. Your own MP4 file, if it's a section background, a short product demo, or you want no ads and full GDPR compliance without a consent banner.
A standard iframe sends data to Google before the user consents, which your consent banner has to handle. A facade with nocookie mode loads the player only after a click, which is the safer practice.
Author: Adrian Kamiński — Websky Studio, Poznań. WordPress performance optimization — with measurements before and after every change.
Your feedback
Was this article helpful?
One click — it helps me choose future topics.

