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.

Field data PhoneDesktopAll Scope All sites October 2026 edition · Desktop field outcomes · Shopify sites only
Shopify Scoped to 8,248 sites out of 203,892 analyzed (cms) Compare with all 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.

The State of Web Vitals · October 2026 · Shopify: 8,246 crawled sites · 3,818 with desktop field data · 6,485 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: 85%, against 86% of all Shopify sites. Sites with unsized iframe dimensions have it least often, at 85%.

SitesGood, needs improvement, poor CLSMedian
All Shopify sites3,81886%0.02
Explicit width & height attributes 16.0%59885%0.03
Unsized iframe (no width/height) 97.7%3,07585%0.02
GoodNeeds improvementPoorSites: with Chrome field data
The State of Web Vitals · October 2026 · Shopify: 8,246 crawled sites · 3,818 with desktop field data · 6,485 sites with iframe dimension sizingBy Arjen Karel · corewebvitals.io/state-of-cwv
2

Iframe dimension sizing usage

Unsized is the most used: 97.7% of Shopify sites. Explicitly sized is 16.0% of Shopify sites.

Sites using each option (sites can use more than one) 6,485 sites
Unsized iframe (no width/height) 97.7% Explicit width & height attributes 16.0%
Unsized iframe (no width/height) 97.7% Explicit width & height attributes 16.0%
The State of Web Vitals · October 2026 · Shopify: 8,246 crawled sites · 3,818 with desktop field data · 6,485 sites with iframe dimension sizingBy Arjen Karel · corewebvitals.io/state-of-cwv
3

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.

FrameworkIframe dimension sizing on its sitesGood CLS
Shopify sites with iframe dimension sizing 6,485 sitesUnsized iframe (no width/height) 98%Explicit width & height attributes 16%86%
jQuery 2,638 sitesUnsized iframe (no width/height) 97%Explicit width & height attributes 20%80%
Vue 753 sitesUnsized iframe (no width/height) 98%Explicit width & height attributes 17%80%
Unsized iframe (no width/height) Explicit width & height attributes
The State of Web Vitals · October 2026 · Shopify: 8,246 crawled sites · 3,818 with desktop field data · 6,485 sites with iframe dimension sizingBy Arjen Karel · corewebvitals.io/state-of-cwv
4

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).

The State of Web Vitals · October 2026 · Shopify: 8,246 crawled sites · 3,818 with desktop field data · 6,485 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, 16.0% set explicit iframe dimensions (85% good CLS) while 97.7% contain at least one unsized iframe (85% good CLS).

The State of Web Vitals · October 2026 · Shopify: 8,246 crawled sites · 3,818 with desktop field data · 6,485 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 · 8,246 crawled Shopify sites (3,818 with desktop Chrome field data, 6,485 sites with iframe dimension sizing, October 2026) · How we measured