Build your first embedded data product now. Talk to our product experts for a guided demo or get your hands dirty with a free 10-day trial.
Iframes have been around since the early days of the internet. For years, web developers relied on these simple HTML elements to embed all types of content in their web pages. But technology evolves rapidly, and today, the iframe is going out of fashion.
In this article, you’ll learn why it’s time to say goodbye to iframes and embrace new web technologies like web components. Learn how web components will blow new life into your embedded content, especially when embedding charts or analytical functionalities.
In modern software development, using iframes is like using a flip phone instead of a smartphone. If you want to embed external content on a webpage, iframes do the job just fine, but they lack the speed, sleekness and user experience that more modern components offer:
In 2026, there are way better alternatives than using an iframe to embed dashboards, charts or other web content. New technologies like AJAX or web components offer a more seamless and secure integration of embedded content.
Web components are a set of JavaScript APIs for developers to create reusable, custom elements that can be embedded in web pages and platforms. These widgets operate independently, so they don’t interfere with other parts of your code.
Web components are based on 4 main specifications:
Web components are essential building blocks in a composable architecture. They help you break up a complex SaaS product or web app into smaller, manageable pieces of code that you can develop and maintain independently.
Although these components can exist independently, they can still interact with each other. Embedding dashboards or charts as web components makes them truly feel part of your app. Unlike iframes, web components can easily communicate with other parts of your application, like filter elements, dropdowns and other components.
Is the iframe dead? Or are they still worth using in some use cases? Let’s look at a quick comparison of using a web component vs an iframe, uncovering the benefits and disadvantages.
Although iframes are considered outdated, they are still a good solution if you want:
On the flip side, forget about iframes if you want to avoid the following limitations:
While iframes are rigid, web components are designed for flexibility:
On the downside, there will be a learning curve to start using web components:
The table below summarizes the pros and cons to help you figure out what’s best for your use case.
Web components offer a faster, smarter, and more interactive way to embed analytics into any software product. They’re built for flexibility, making charts, dashboards, and other data experiences feel like a native part of your app, instead of being bolted on.
Platforms like Luzmo build on this approach with tools designed specifically for modern embedded analytics. With Luzmo Studio, teams can design and customize embedded dashboards and charts that integrate seamlessly with their product UI. Luzmo IQ allows users to explore data through AI-powered insights and natural language queries, while Luzmo AI enables intelligent data exploration directly inside applications. Together, these capabilities make it easier to move beyond static embeds and build truly interactive, composable analytics experiences.
Here are three powerful ways to start using web components right now to level up your embedded analytics.
Sometimes, you don’t want to embed an entire dashboard on a web page. You just want to blend charts with other content. For example, imagine you’re launching your company’s annual report. To support claims in the report, you want to add interactive charts and graphs alongside the text.
With iframes, adding multiple charts will drag down load times and limit your display options.
Web components keep things fast and flexible, letting you place each chart exactly where and how you want it.

The biggest advantage of web components is their interactivity. Take the annual report example: two charts embedded as separate web components can easily interact.
For instance, one chart can dynamically filter the other. They can also connect to external filters in your app. So, if your annual report page has a dropdown to switch years, selecting 2022 will instantly update all embedded charts to show 2022 data.
Another cool example is this collapsible filter panel. Users can apply filters that instantly update every embedded chart on the page. When it’s collapsed, the filters stay applied in the background, keeping the page clean while still showing personalized data.

Iframes are great for embedding whole dashboards with minimal developer effort. But let’s face it: who wants to sit and stare at an overwhelming dashboard full of charts that communicate… nothing? Users expect smart insights everywhere; consuming data without even thinking about it.
Embedding with web components is the first step towards a truly composable analytics experience. You can drop individual charts, tables, or filters straight into your app — mixing and matching different chart components in your own app.
And everything that comes next? Luzmo Flex will take it from there. This developer-friendly SDK is a complete toolkit for embedding analytics as flexible building blocks. Pick the components you want, place them anywhere in your app, and make them work together seamlessly. Replace bulky dashboards with analytics that feel native from the start.
Let these 9 examples inspire you what you can build with the power of Luzmo Flex and web components.
At Luzmo, we set the standard for modern embedding. Our web components work seamlessly in any major frontend framework, giving you all the flexibility and interactivity you need.
With Luzmo’s embedded analytics platform, product managers go from idea to fully integrated analytics in days, not months. See it in action with a free 10-day trial or book a demo with our experts.
All your questions answered.
Are iframes still used in modern web development?
Yes, iframes are still used for certain use cases like embedding videos, maps, or third-party widgets. They provide an isolated environment and are simple to implement with a basic HTML snippet. However, for complex applications like embedded analytics, they often lack flexibility, interactivity, and performance compared to modern approaches like web components.
Why are web components better than iframes for embedded analytics?
Web components integrate directly with your application, allowing charts and dashboards to interact with filters, dropdowns, and other UI elements. Unlike iframes, they can communicate with the parent app and other components on the page. This creates faster load times, better responsiveness, and a more native user experience.
When should you use web components instead of iframes?
Web components are ideal when you need deep integration between embedded content and your application. For example, if you want charts that react to filters, dropdowns, or user actions across the app, web components are the better choice. Iframes may still work for simple static embeds, but modern analytics experiences benefit from the flexibility of web components.
Build your first embedded data product now. Talk to our product experts for a guided demo or get your hands dirty with a free 10-day trial.