Dev.to WebDev 🛠 Dev 👁 0 📖 1 min read

The buy button should never open a new tab

Every live shopping demo I've seen does the same thing: the product card opens a new tab with the product page. The viewer leaves the stream. Once they leave, they don't come back — they finish checkout, get distracted,

Cao Wen
Cao Wen

Posted on Nov 19

The buy button should never open a new tab

Every live shopping demo I've seen does the same thing: the product card opens a new tab
with the product page.

The viewer leaves the stream. Once they leave, they don't come back — they finish checkout,
get distracted, and the stream keeps talking to an empty room.

We keep the product page inside the same iframe the stream is playing in. The video keeps
running behind it, and "back" returns to the stream instead of a blank history entry.

It's not a technical breakthrough. It's a decision about which surface owns the checkout,
and it's the difference between a live event and a product page with a video in the corner.

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.