10K+
Businesses tracked
2,400+
Verified reviewers
12+
Embeddable widgets
50+
Countries covered

The trusted reviews platform. Genuine customer experiences, independently verified — every review you read is one you can believe.

Stay in the loop

Reviews insights and platform updates monthly.

FacebookInstagramX (Twitter)

Explore

All CategoriesCompany ListBlogGuides

Widgets

Google Reviews WidgetTrustpilot Reviews WidgetAll-in-One WidgetFor ShopifyFor WixFor WordPress

Businesses

Business LoginPricingStorefrontHelp Centre
Rated Stores
© 2026 Rated Stores™. All Rights Reserved.
TermsPrivacyCookies
Home/Widgets/Shadow DOM Widget Isolation

Widgets / Product guide

Shadow DOM Widget Isolation

Rated Stores review widgets use Shadow DOM for style isolation — no CSS conflicts with your site, no iframe overhead, no slow loading. Here's why the architecture matters.

Start free View widget examples
Product guide5 min read
Widget preview · Unlimited views
A clear boundary between theme and widget styles
19+ source integrations
Unlimited widget views
JSON-LD rich snippets

On this page

The Iframe ProblemWhat Shadow DOM SolvesPerformance ComparisonSEO ImpactCSS Conflict ResolutionBrowser SupportWhat This Means For YouTest It YourselfGet StartedRelated
Build your widget

Shadow DOM Widget Isolation

Free plan available, unlimited views, and no card required.

Create your widget →
Sources supported
GoogleTrustpilotEtsyJudge.meYotpoReviews.ioFeefo+12 more

Embeddable widgets face an architectural dilemma: isolate the widget's styles from the host page without breaking SEO or destroying performance.

Most vendors picked the easy answer years ago: iframes. Iframes isolate perfectly but slow your site down, prevent SEO indexing, and create awkward layouts.

Rated Stores uses Shadow DOM — modern browser-native isolation that delivers the isolation without the iframe trade-offs.


The Iframe Problem

When you embed an Elfsight, Common Ninja, POWR or Taggbox widget, it loads inside an iframe. This means:

  • Separate document — extra HTTP requests, CSS pipeline, JS context
  • Invisible to Google — iframe content isn't indexed as part of your page
  • No JSON-LD rich snippets — your page's schema can't include the widget content
  • Layout issues — iframe sizing is rigid, responsive design becomes hard
  • Cookie/storage friction — iframe content runs in a different security context
  • Performance hit — ~150KB+ overhead per iframe, multiple network round-trips

Iframes are a 1990s solution. Better options exist for 2026.


A conceptual diagram of Shadow DOM style isolation, not a separate browser document.

What Shadow DOM Solves

Shadow DOM is a W3C standard built into every modern browser since 2016. It provides:

  • Style encapsulation — widget CSS doesn't leak to your site, your site's CSS doesn't break the widget
  • DOM isolation — widget elements don't pollute your DOM tree
  • Same-origin context — widget runs as part of your page (no iframe security wall)
  • Native browser API — no polyfills, no overhead, works everywhere

Rated Stores widgets create a Shadow Root per widget, inject scoped Tailwind styles, and render inside. Your site sees a single <div class="rated-stores-widget"> placeholder — the rendered widget lives inside the shadow root, fully isolated.


Performance Comparison

MetricIframe-based widgetsShadow DOM (Rated Stores)
Bundle size~150KB+<30KB gzipped
HTTP round-tripsMultiple (iframe + assets)One bundle
First paintAfter iframe load + renderSynchronous once data loads
Layout shift (CLS)Common (iframe sizing)Zero
Cross-origin overheadYes (separate origin)None (same-origin)

For ecommerce stores running on Core Web Vitals as a ranking signal, this matters.


SEO Impact

The biggest difference: Google indexes Shadow DOM content as part of your page.

When Googlebot crawls your page, the Shadow DOM content (reviews, ratings, JSON-LD) counts toward your page. Combined with our injected JSON-LD review schema, you get:

  • Rich-snippet star ratings in Google search results
  • Long-tail keyword coverage — every review's text is indexable content on your page
  • Better topical authority — reviews count as topical content for your products

Iframe-based widgets give you none of this. The reviews exist on your site visually but don't pass SEO value.


CSS Conflict Resolution

A typical Shopify or WordPress theme has hundreds of CSS rules — * { box-sizing }, font resets, button styles, etc. Many embedded widgets break because the host theme overrides their CSS unpredictably.

Shadow DOM resolves this completely:

  • Host page CSS does not penetrate the Shadow Root
  • Widget CSS does not leak out
  • Fonts, theme variables, button styles stay isolated

Result: the widget looks identical on Shopify, Wix, Squarespace, WordPress, Webflow, and custom HTML sites — without per-platform CSS overrides.


Browser Support

Shadow DOM v1 is supported in:

  • Chrome 53+ (2016)
  • Firefox 63+ (2018)
  • Safari 10+ (2016)
  • Edge 79+ (2020)

That's >99% of modern browsers. We don't ship polyfills — the API is native.


Style encapsulation still needs practical checks at the integration point.

What This Means For You

If you're choosing a review widget today:

  • Iframe widgets — older architecture, worse SEO, worse performance, harder to style
  • Shadow DOM widgets — modern architecture, better SEO, faster, no CSS conflicts

Rated Stores picked the right architecture. Most competitors picked years ago and can't easily migrate without rebuilding their entire embed product.


Test It Yourself

Embed a Rated Stores widget, then:

  1. Open browser DevTools
  2. Inspect the widget area
  3. Look for #shadow-root (open) in the Elements tree
  4. Note: no iframe, no cross-origin context, native page content

Compare to any iframe-based widget — instantly visible architectural difference.


Get Started

Try Rated Stores free → — see the architectural difference on your own site.


Related

  • Widget Speed Comparison
  • Rich Snippets Out of the Box
  • Reviews Widget HTML Embed
  • Best Elfsight Alternative

← Back to Guides

Bring every review source together.

Create an all-in-one widget with unlimited views and start displaying your complete reputation.

Start Free →Compare Plans