Shopify iframe dimensions and Cumulative Layout Shift
Unsized iframes (97.7%) versus explicitly sized iframes (16.0%): how reserving embed dimensions affects Cumulative Layout Shift across iframe-using sites.
97.7% of Shopify sites use unsized iframe dimension sizing, and 93% of those sites have a good CLS, against 94% of all Shopify sites.
CLS pass rate
Sites with unsized iframe dimension sizing have a good CLS most often: 93%, against 94% of all Shopify sites. Sites with explicitly sized iframe dimensions have it least often, at 90%.
Iframe dimension sizing usage
Unsized is the most used: 97.7% of Shopify sites.
Iframe dimension sizing per framework
Vue sets the iframe dimension sizing to unsized on 98% of its sites, and 90% of Vue sites have a good CLS, against 94% of all sites.
Iframe dimension sizing or the framework
Does the framework explain the iframe dimension sizing difference?
On jQuery, 90% of sites with unsized iframe dimension sizing have a good CLS, against 88% of jQuery sites with explicitly sized. Within jQuery, sites with unsized and explicitly sized have a good CLS about equally often. On Vue, 89% of sites with unsized iframe dimension sizing have a good CLS, against 88% of Vue sites with explicitly sized. Within Vue, sites with unsized and explicitly sized 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, 16.0% size their embeds explicitly (90% good CLS) and 97.7% include unsized iframes (93% 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, 16.0% set explicit iframe dimensions (90% good CLS) while 97.7% contain at least one unsized iframe (93% good CLS).
By Arjen Karel · 8,246 crawled Shopify sites (5,825 with phone Chrome field data, 6,485 sites with iframe dimension sizing, October 2026). How we measured.