Interactive product demos that don't slow your landing page
Interactive product demos can ship on a landing page without hurting load time if you defer the heavy bundle and load a poster image first.
Interactive product demos can live on a landing page without slowing it down, provided the demo is not part of the first load. Show a still frame first, fetch the demo code only after a click, and the page paints as fast as it did before the demo existed.
Why does a demo slow a landing page down?
A demo slows a page because the browser must download, parse, and execute its code before the page responds to taps, and most demo tools ship a large script plus images the visitor may never see.
Bytes are the file weight the browser downloads, and most of that weight is a JavaScript bundle: one file holding the code the browser must run. The main thread is the single lane where the browser executes that code, calculates layout, and reacts to input, so one long script holds up everything queued behind it. Network priority decides which files are fetched first, and a demo loaded inline competes with the fonts, stylesheet, and hero image that actually paint the page.
A scripted product tour, meaning a fixed sequence of app screenshots that advance when the visitor clicks a hotspot, usually weighs roughly 300 KB to 1.2 MB once you count the tour library, the screen images, and any fonts baked into them. An embedded live demo, meaning an iframe, which is a separate web page loaded inside a box on your page, is often heavier because it boots a whole application. Vendor widgets also tend to pull in analytics and session recording, which capture clicks and scrolling for later replay.
On a mid-range Android phone, a 1 MB demo script that runs at first paint can add roughly one to two seconds before the page responds to a tap. On a slow connection the same bundle can cost several seconds, and that is the case where visitors leave.
What counts as the first load
The first load is every resource the browser must fetch and process before the visitor sees a usable page: HTML, CSS, fonts, the main image, and any script that blocks rendering. That chain is the critical path.
Largest Contentful Paint, or LCP, is the metric for when the largest visible element finishes painting. A demo image or an embedded frame often becomes that element by accident, which is how an innocent-looking demo wrecks a decent page score. Cumulative Layout Shift, or CLS, measures how much the page moves while loading, and an unreserved demo container is a common cause: the headline sits still, then jumps when the frame arrives.
How do you keep an interactive product demo off the critical path?
Keep the demo off the critical path by loading only a poster image at first, then fetching the demo code after a click or during browser idle time, so the first paint never waits for demo files.
A poster image is a still frame that stands in for the demo until the real thing loads. Reserve its space with fixed width and height, and serve it in WebP or AVIF, two image formats that compress better than JPEG at the same quality.
The second half is the trigger. Either the visitor clicks a clearly labelled button, or the browser reports idle time, meaning the main thread has nothing queued, and you load the demo then. Click is usually the better default because it lines the download up with intent.
| Option | Weight added at first paint | Effect on LCP | Build effort | Where it fits |
|---|---|---|---|---|
| Autoplay video or animated GIF | High, often 2 to 8 MB | Usually the worst case; it competes for bandwidth | Low | Short loops under 1 MB, if at all |
| Scripted tour loaded inline | Medium, roughly 300 KB to 1.2 MB | Measurable delay on mid-range phones | Medium | Teams with screens already designed |
| Embedded live iframe | High, plus a full app boot | Delays interaction more than paint | Low to medium | Products where real state matters |
| Click-to-load demo with a poster | Low, one image of roughly 40 to 120 KB | Close to none when the image is sized | Medium | Most marketing pages |
The last row is the one worth defaulting to. It keeps the first paint clean, and the demo is ready in about the time it takes someone to move a cursor and click.
How do you build a click-to-load interactive product demo?
Build the demo as a separate bundle loaded on click, with a poster image holding its place, so the initial page downloads only the button, the image, and the call that fetches the rest.
The steps are not complicated, but each one has a failure mode:
- Pick the poster frame. Use the screen a visitor sees after one action, not an empty dashboard.
- Export at the display size. A 1200 px image shown at 600 px wastes roughly half its bytes, so export at double size at most.
- Reserve the box. Set width and height on the container so nothing moves when the demo replaces the poster.
- Label the button plainly. "Open the demo" works better than a bare play triangle, which reads as video.
- Load on click with a dynamic import, which is a JavaScript call that fetches a file only when it runs, keeping the bundle out of the initial download.
- Warm the connection on intent. After roughly 150 ms of hover or a touchstart, fire a preconnect, which opens a connection to the demo host early so the first byte arrives sooner.
- Show a skeleton immediately. A skeleton, meaning grey placeholder blocks in the shape of the content, that appears within roughly 100 ms reads as progress instead of a stall.
How do you defer a demo without losing conversions?
Deferring a demo costs conversions only when the delay is invisible or the entry point looks broken, so use a real button, a poster that resembles the demo, and a fast transition into the loaded state.
Most of the risk sits in the seam between poster and demo. If the button looks decorative, people skip it. If the swap takes three seconds with no feedback, they assume it broke. Rules that hold up:
- Say what happens next on the button, not the word "demo" on its own.
- Keep the poster close to the demo's first screen so the swap is not jarring.
- Prefetch on hover after a short delay of roughly 100 to 200 ms. Prefetching means downloading a file before it is needed, on the guess that it soon will be; without the delay you download for everyone whose cursor crosses the section.
- Track the open rate. Somewhere in the region of 10% to 25% of visitors who reach the section opening the demo suggests the pattern is working, while a sharp drop against an earlier inline version means the entry point is too quiet.
There is a genuine trade-off here. An inline demo that appears instantly may convert better among the visitors who see it, but it charges that gain against everyone who leaves before it loads. On mobile, that trade rarely pays.
Which metrics should you watch after adding a demo?
Watch Largest Contentful Paint for first paint, Interaction to Next Paint for responsiveness, and Total Blocking Time in lab tests, plus the share of visitors who actually open the demo.
Interaction to Next Paint, or INP, measures how fast the page responds to a tap or key press across the whole visit. Total Blocking Time, or TBT, is a lab measure of how long the main thread stays busy enough to block input. Both catch a demo that loads late and still freezes the page.
Test on a throttled mobile profile before and after the change. A rough set of targets:
- LCP under roughly 2.5 seconds on a mid-range phone over 4G.
- INP under roughly 200 ms.
- TBT under roughly 200 ms in a lab run.
- CLS under roughly 0.1, with the demo container sized in advance.
- Open rate of roughly 10% to 25% among visitors who reach the section.
If LCP moves past those numbers, the demo is still on the critical path somewhere. Check that no vendor script sits in the document head, which is parsed before anything paints, and that the poster is not being served at full camera resolution.
Where the effort actually goes
Most of the work in a good demo is the screens, not the loading. A scripted tour of five to eight steps is typically two to four weeks of design and front-end time, and the deferral work is a day or two inside that. A live demo driven by real product state is a different project, often two to three times the build cost, because someone has to keep it in step with the app.
Decide the loading strategy before the design is signed off. If you are commissioning the page, the choice belongs in the landing page build scope alongside image budgets and hosting, rather than arriving as a performance fix two weeks before launch.
Frequently asked questions
How much does an interactive demo slow down a landing page?
Loaded inline, a scripted demo typically adds roughly 300 KB to 1.2 MB to the first load and can push back responsiveness by one to two seconds on a mid-range phone. Loaded on click behind a poster image, it adds only the poster, usually 40 to 120 KB.
Should I put the product demo in an iframe?
An iframe is fine when you need isolation from the page's styles and scripts, but load it lazily so it does not boot with the page. If your demo only needs screenshots and clicks, a scripted tour is lighter and easier to match to your design.
How do I stop the page jumping when the demo loads?
Set explicit width and height on the demo container and on the poster image, so the browser reserves the space before any file arrives. That keeps Cumulative Layout Shift close to zero and stops the headline being pushed down when the frame appears.
Does deferring a demo hurt conversion?
It can, if the button is easy to miss or the swap is slow and silent. A clearly labelled button, a poster that matches the first screen, and a placeholder appearing within roughly 100 ms usually keep the open rate around 10% to 25% of visitors who reach the section.