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.
16.0% of Shopify sites use explicitly sized iframe dimension sizing, and 85% of those sites have a good CLS, against 86% of all Shopify sites.
CLS pass rate
Sites with explicitly sized iframe dimension sizing have a good CLS most often: 85%, against 86% of all Shopify sites. Sites with unsized iframe dimensions have it least often, at 85%.
Iframe dimension sizing usage
Unsized is the most used: 97.7% of Shopify sites. Explicitly sized is 16.0% of Shopify sites.
Iframe dimension sizing per framework
On jQuery, 97% of sites use unsized iframe dimension sizing, and 80% of jQuery sites have a good CLS, against 86% of all sites. On Vue, 98% of sites use unsized, and 80% of Vue sites have a good CLS.
Iframe dimension sizing or the framework
Does the framework explain the iframe dimension sizing difference?
On jQuery, 82% of sites with explicitly sized iframe dimension sizing have a good CLS, against 80% 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 80% 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, 16.0% size their embeds explicitly (85% good CLS) and 97.7% 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, 16.0% set explicit iframe dimensions (85% good CLS) while 97.7% contain at least one unsized iframe (85% good CLS).
By Arjen Karel · 8,246 crawled Shopify sites (3,818 with desktop Chrome field data, 6,485 sites with iframe dimension sizing, October 2026). How we measured.