WordPress iframe dimensions and Cumulative Layout Shift
Unsized iframes (82.1%) versus explicitly sized iframes (62.7%): how reserving embed dimensions affects Cumulative Layout Shift across iframe-using sites.
62.7% of WordPress sites use explicitly sized iframe dimension sizing, and 86% of those sites have a good CLS, against 89% of all WordPress sites.
CLS pass rate
Sites with explicitly sized iframe dimension sizing have a good CLS most often: 86%, against 89% of all WordPress sites. Sites with unsized iframe dimensions have it least often, at 85%.
Iframe dimension sizing usage
Unsized is the most used: 82.1% of WordPress sites. Explicitly sized is 62.7% of WordPress sites.
Iframe dimension sizing per framework
jQuery sets the iframe dimension sizing to explicitly sized on 63% of its sites, and 89% of jQuery sites have a good CLS, against 89% of all sites. Vue sets the iframe dimension sizing to unsized on 85% of its sites, and 89% of Vue sites have a good CLS.
Iframe dimension sizing or the framework
Does the framework explain the iframe dimension sizing difference?
On jQuery, 86% of sites with explicitly sized iframe dimension sizing have a good CLS, against 85% of jQuery sites with unsized. Within jQuery, sites with explicitly sized and unsized have a good CLS about equally often. On Vue, 85% of sites with explicitly sized iframe dimension sizing have a good CLS, against 84% of Vue sites with unsized. Within Vue, 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.7% size their embeds explicitly (86% good CLS) and 82.1% include unsized iframes (85% good CLS, largely hidden utility sandboxes).
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.7% set explicit iframe dimensions (86% good CLS) while 82.1% contain at least one unsized iframe (85% good CLS).
By Arjen Karel · 63,295 crawled WordPress sites (60,855 with all devices Chrome field data, 29,444 sites with iframe dimension sizing, October 2026). How we measured.