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 · Desktop 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 80% of those sites have a good CLS, against 80% of all React sites.

The State of Web Vitals · October 2026 · React: 9,570 crawled sites · 1,979 with desktop 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: 80%, against 80% of all React sites. Sites with unsized iframe dimensions have it least often, at 73%.

SitesGood, needs improvement, poor CLSMedian
All React sites1,97980%0.02
Explicit width & height attributes 62.3%66680%0.02
Unsized iframe (no width/height) 70.3%93873%0.03
GoodNeeds improvementPoorSites: with Chrome field data
The State of Web Vitals · October 2026 · React: 9,570 crawled sites · 1,979 with desktop 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 · 1,979 with desktop 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 96% of Wix sites have a good CLS, against 80% of all sites. WordPress sets the iframe dimension sizing to unsized on 87% of its sites, and 75% 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%80%
Wix 3,352 sitesExplicit width & height attributes 65%Unsized iframe (no width/height) 61%96%
WordPress 1,198 sitesUnsized iframe (no width/height) 87%Explicit width & height attributes 57%75%
Unsized iframe (no width/height) Explicit width & height attributes
The State of Web Vitals · October 2026 · React: 9,570 crawled sites · 1,979 with desktop 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 93% of Wix sites with unsized. Within Wix, sites with explicitly sized and unsized have a good CLS about equally often. On WordPress, 72% of sites with explicitly sized iframe dimension sizing have a good CLS, against 73% 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 (80% good CLS) and 70.3% include unsized iframes (73% good CLS, largely hidden utility sandboxes).

The State of Web Vitals · October 2026 · React: 9,570 crawled sites · 1,979 with desktop 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 (80% good CLS) while 70.3% contain at least one unsized iframe (73% good CLS).

The State of Web Vitals · October 2026 · React: 9,570 crawled sites · 1,979 with desktop 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 (1,979 with desktop Chrome field data, 5,283 sites with iframe dimension sizing, October 2026) · How we measured