Feedback

YouTube: impact on page speed

Category: Video embed

An embedded YouTube video loads the complete player with its JavaScript as soon as the iframe is rendered, even if nobody presses play. That makes it one of the most expensive embeds per page.

On 7.5 % of the 41458 homepages measured, YouTube is among the five heaviest third parties. Where it is, it takes a median of 391 ms of main-thread time; on the heaviest quarter of those sites it takes 712 ms or more.

7.5 %

of homepages: among the five heaviest third parties

391 ms

median main-thread time

712 ms

main-thread time on the heaviest quarter (p75)

987 KB

median transfer size

Distribution across homepages

Percentiles across 3093 homepages with YouTube.

Percentile Main-thread time Transfer size
p25
5 ms
27 KB
Median
391 ms
987 KB
p75
712 ms
1.1 MB
p90
1,520 ms
2.9 MB

In context

On 57 % of the homepages where it appears, YouTube alone uses 250 milliseconds of main-thread time or more, the mark from which Lighthouse flags third-party code.

On a typical homepage YouTube makes up 9.1 % of the page weight.

Other Video embed tools

Based on homepages where the tool is among the five heaviest third parties (measurements before October 18, 2026).

Tools per category

Often loaded together with

Share of homepages with YouTube where the other tool is also among the five heaviest third parties.

How to spot YouTube on your page

An embed requests the player page from youtube.com or youtube-nocookie.com, then the player's base.js and styles and a series of logging requests to the same domain. The cost is paid per embed, so a page with three videos pays it three times. A facade turns this into a single image request until someone actually wants to watch.

How long YouTube blocks the main thread on your own page is shown by the Total Blocking Time test.

How to reduce the impact of YouTube

Frequently asked questions

How can I load YouTube with less impact?

Use a facade: show a thumbnail with a play button and load the player only on click (for example with lite-youtube-embed). Add loading="lazy" to iframes below the fold.

Does YouTube affect Core Web Vitals?

A YouTube embed mostly affects LCP and, through its player scripts, INP. The standard iframe loads the player as soon as the page opens, even if nobody presses play, and when the video sits at the top of the page its preview image can become the largest element. An iframe without fixed dimensions also shifts the layout while it loads.

Method and sample: Third-Party Benchmark.

Run a free test Create a free account All third parties in the benchmark