Get the latest tech news
Why not to use iframes for embedded dashboards
Learn why iframes are not a good choice for embedding analytics dashboards into your SaaS product or website, as well as what to use instead.
Site isolation in Chrome even spawned an entire architecture change (out-of-process frames) to mitigate the risk, but that protection comes with extra memory overhead and still leaves postMessage channels vulnerable if not validated. By contrast, an SDK or component library grants full source control, predictable semantic versioning, and the ability to run Storybook or Chromatic snapshots alongside the rest of the UI ( ref). Embeddable mounts charts, tables, and ad hoc queries directly in the host document using native React/Vue embeds or web components, so analytics respect the app’s style variables and respond to the same router, store, and context that power the rest of the interface.
Or read this on Hacker News