Iframe dimension sizing on React sites

Unsized iframes (70.3%) versus explicitly sized iframes (62.3%): how reserving embed dimensions affects Cumulative Layout Shift across iframe-using sites.

Field data PhoneDesktopAll Scope All sites October 2026 edition · Phone field outcomes · React sites only
React Scoped to 9,570 sites out of 210,902 analyzed (frameworks) Compare with all sites →

62.3% of React sites use explicitly sized iframe dimension sizing, and 92% of those sites have a good CLS, against 92% of all React sites.

The State of Web Vitals · October 2026 · React: 9,570 crawled sites · 5,488 with phone field data · 5,283 sites with iframe dimension sizingBy Arjen Karel · corewebvitals.io/state-of-cwv
1

CLS pass rate

Sites with explicitly sized iframe dimension sizing have a good CLS most often: 92%, against 92% of all React sites. Sites with unsized iframe dimensions have it least often, at 89%.

SitesGood, needs improvement, poor CLSMedian
All React sites5,48892%0.00
Explicit width & height attributes 62.3%1,89092%0.00
Unsized iframe (no width/height) 70.3%2,16089%0.00
GoodNeeds improvementPoorSites: with Chrome field data
The State of Web Vitals · October 2026 · React: 9,570 crawled sites · 5,488 with phone field data · 5,283 sites with iframe dimension sizingBy Arjen Karel · corewebvitals.io/state-of-cwv
2

Iframe dimension sizing usage

Unsized is the most used: 70.3% of React sites. Explicitly sized is 62.3% of React sites.

Sites using each option (sites can use more than one) 5,283 sites
Unsized iframe (no width/height) 70.3% Explicit width & height attributes 62.3%
Unsized iframe (no width/height) 70.3% Explicit width & height attributes 62.3%
The State of Web Vitals · October 2026 · React: 9,570 crawled sites · 5,488 with phone field data · 5,283 sites with iframe dimension sizingBy Arjen Karel · corewebvitals.io/state-of-cwv
3

Iframe dimension sizing per platform

Wix sets the iframe dimension sizing to explicitly sized on 65% of its sites, and 97% of Wix sites have a good CLS, against 92% of all sites. WordPress sets the iframe dimension sizing to unsized on 87% of its sites, and 88% of WordPress sites have a good CLS.

PlatformIframe dimension sizing on its sitesGood CLS
React sites with iframe dimension sizing 5,283 sitesUnsized iframe (no width/height) 70%Explicit width & height attributes 62%92%
Wix 3,352 sitesExplicit width & height attributes 65%Unsized iframe (no width/height) 61%97%
WordPress 1,198 sitesUnsized iframe (no width/height) 87%Explicit width & height attributes 57%88%
Unsized iframe (no width/height) Explicit width & height attributes
The State of Web Vitals · October 2026 · React: 9,570 crawled sites · 5,488 with phone field data · 5,283 sites with iframe dimension sizingBy Arjen Karel · corewebvitals.io/state-of-cwv
4

Iframe dimension sizing or the platform

Does the platform explain the iframe dimension sizing difference?

On Wix, 97% of sites with explicitly sized iframe dimension sizing have a good CLS, against 95% of Wix sites with unsized. Within Wix, sites with explicitly sized and unsized have a good CLS about equally often. On WordPress, 85% of sites with explicitly sized iframe dimension sizing have a good CLS, against 86% of WordPress sites with unsized. Within WordPress, sites with explicitly sized and unsized have a good CLS about equally often.

Why visible iframes cannot infer an aspect ratio without attributes

Unlike images, an <iframe> has no intrinsic dimensions in its network header; without explicit width and height attributes or a sized container, the browser defaults the frame to 300x150 pixels until scripts resize it. Across iframe-using sites, 62.3% size their embeds explicitly (92% good CLS) and 70.3% include unsized iframes (89% good CLS, largely hidden utility sandboxes).

The State of Web Vitals · October 2026 · React: 9,570 crawled sites · 5,488 with phone field data · 5,283 sites with iframe dimension sizingBy Arjen Karel · corewebvitals.io/state-of-cwv
5

Understanding iframe dimension sizing

Reserve fixed width and height attributes or a CSS aspect-ratio container around every visible iframe so late postMessage resizes do not shift surrounding layout. Across sites with iframes, 62.3% set explicit iframe dimensions (92% good CLS) while 70.3% contain at least one unsized iframe (89% good CLS).

The State of Web Vitals · October 2026 · React: 9,570 crawled sites · 5,488 with phone field data · 5,283 sites with iframe dimension sizingBy Arjen Karel · corewebvitals.io/state-of-cwv
Related signals Scripts per page → DOM depth → DOM size → Page weight & requests → By Arjen Karel · 9,570 crawled React sites (5,488 with phone Chrome field data, 5,283 sites with iframe dimension sizing, October 2026) · How we measured