Multiple Popups on One Page Conflict: Diagnose and Fix Stacked Modals

Two WidgetJar popups firing at once? Map triggers, set a priority order, and run a manual test pass so visitors never get stacked modals or broken focus.

James HollowayWeb Development Lead8 min read

Two modals at the same moment look like a bug, and for most visitors they are one. A timed offer lands, then an exit-intent prompt fires as the pointer leaves the viewport, and suddenly the visitor is staring at a dark backdrop with half a form on top of another form. The close button belongs to the popup underneath, Escape dismisses the wrong layer, and the person who just wanted to read a price leaves. This guide is a diagnosis and fix path for multiple popups on one page conflict inside WidgetJar: how to find every competing trigger, choose a priority order, tighten settings, and verify the result with a manual test pass. It assumes you already have WidgetJar popups installed on a registered domain and are now debugging behavior, not evaluating whether popups work at all.

Why overlapping popups happen in the first place

The usual cause is not a broken embed script. It is independent triggers that were each reasonable on their own. A popup scheduled for a fixed delay, a second one set to fire on exit intent, and a third tied to scroll depth do not know about each other. Each one evaluates its own condition against the same page load. When a visitor scrolls past the depth threshold and then moves the pointer toward the browser chrome within the same few seconds, both conditions are true. Nothing in the configuration compares them.

Layering makes it worse. If both popups are rendered as modal dialogs, each one is designed to make the rest of the page inert. The HTML dialog element does exactly that: a modal dialog blocks interaction with other UI elements and renders the page behind it inert, while a non-modal dialog does not. You can see the distinction described in the MDN documentation for the dialog element. Two modals open at once means two inert layers, two backdrops, and competing focus rules. The browser will only send Escape to the last one shown, so the top dialog closes and the visitor is dropped into a second modal they never expected.

That is the practical symptom to watch for: the visitor closes a popup and immediately faces another one. It reads as a trap rather than an offer.

Map every popup on the page before changing settings

Do not start by switching triggers off. Start by writing down what is actually installed. For each popup on the page, record four things:

  • Its trigger: fixed delay, exit intent, scroll depth, click, or inactivity.
  • Its page rule: which URLs, templates, or page types it is allowed to appear on.
  • Its goal: newsletter capture, a call-back request, a discount, an announcement, a consent prompt.
  • Its layout: modal dialog, side drawer, or inline block.

A simple table is enough. The point is to surface duplicates. It is common to find two popups built by different people for the same newsletter, or a seasonal announcement left enabled after its campaign ended. Those are not trigger conflicts in the technical sense, but they produce exactly the same stacked result.

While mapping, note which popups are modal and which are not. A modal plus a non-modal drawer can coexist visually without the same focus chaos as two modals, but it still competes for attention. If your popups mix layouts, the comparison in dialog element vs custom modal div for popups is worth reading before you decide which one to keep in modal form.

Choose a priority order and demote the rest

One page should have one primary capture goal. Everything else on that page is secondary and should be moved, delayed, or removed.

The clearest rule I use: assign a single primary popup per page goal, then demote every other popup to a different page or a later trigger. If the newsletter popup owns the blog index, the call-back popup does not also belong there. If the exit-intent offer is the primary capture on a pricing page, the delayed timed popup should not fire on the same URL.

The decision usually comes down to intent. Visitors moving toward the browser chrome on a product page are signaling hesitation, which fits an exit-intent offer. Visitors on a long article are mid-read, which fits a low-interruption drawer. Matching trigger to page goal is covered in more depth in popup timing: when to show a lead capture popup, and it is the fastest way to remove a conflict without losing the popup entirely. You are not deleting campaigns; you are giving each one its own territory.

When two popups genuinely serve the same page goal, consolidate them into one layout rather than trying to sequence two modals. A single modal with a clear headline and one form almost always outperforms two popups racing each other, and it halves the accessibility surface you have to test.

Practical fixes inside the panel

Once you have a priority order, the fixes are mostly about narrowing conditions so two triggers cannot both be satisfied at the same moment.

  1. Tighten page targeting. Push each secondary popup onto URLs where the primary does not run. Excluding a page is cheaper and safer than trying to sequence timing.
  2. Stagger timing. If two popups must share a page, give them clearly separated delays so one is dismissed or ignored before the other becomes eligible. A few seconds is not enough separation; think in terms of a visitor completing one interaction first.
  3. Consolidate layouts. Merge two overlapping capture forms into one popup with a single submit action.
  4. Retire stale popups. Announcement popups outlive their campaigns. Disable them rather than leaving them to compete.

After each change, reload the page and walk through the trigger path manually. Do not assume that disabling one trigger fixed the conflict; confirm which popup actually appears.

Keep one modal at a time for keyboard and screen reader users

Stacked modals break more than aesthetics. The WAI-ARIA Authoring Practices describe the expected behavior of a modal dialog: focus moves into the dialog when it opens, Tab and Shift+Tab stay inside it, Escape closes it, and when it closes, focus returns to the element that invoked it. Those expectations are documented in the WAI-ARIA modal dialog pattern.

Two modals open at once put those rules in tension. Which dialog owns focus? Which one returns focus when it closes? Keyboard users can end up tabbing through the wrong layer, and screen reader users may hear two dialog announcements in a row without understanding which one they are in. If the first dialog is marked modal but the second is not, the page behind it may be inert in ways that make the close button unreachable.

The safe rule is one modal at a time. If you must layer something, use a non-modal pattern for the secondary element so it does not claim the same inert treatment. If you want a deep pass on keyboard behavior, the modal dialog accessibility test script walks through entry, containment, Escape, and focus return step by step.

Reserve space so hiding a popup does not shift the page

When you fix a popup conflict, you often change what renders on load. That can introduce layout shift if the embed's container changes size when a popup is suppressed. Reserve the box before you change behavior, then compare metrics before and after.

Capture a baseline first. Google's guidance on optimizing Largest Contentful Paint recommends measuring real user experience rather than relying only on lab tools, and the same discipline applies to layout stability: record the starting state, make the change, and re-measure. If you need a method for holding space around a popup embed, the guide to reserving space for a popup embed to prevent layout shift covers the fixed-dimension approach.

For most popup conflicts, the practical fix is simple: give the container a fixed height or aspect ratio so suppressing one popup does not collapse the layout. Then confirm the page no longer jumps when the remaining popup opens.

Manual test script for stacked popup scenarios

Run this pass on a staging copy with all popups enabled. Treat it as a script, not a vibe check.

  1. Load the page fresh in a private window so no dismissal cookies interfere.
  2. Trigger the primary popup using its real condition (wait, scroll, or pointer exit). Confirm it appears alone.
  3. Tab through it. Focus should stay inside. Confirm Shift+Tab wraps rather than escaping to the page.
  4. Press Escape. The popup should close and focus should return to a sensible element, not the top of the document.
  5. Reopen it and close it with the close button. Behavior should match the Escape path.
  6. Trigger the secondary condition while the primary popup is open. Confirm no second modal appears on top.
  7. Repeat on a narrow mobile viewport and with a keyboard-only pass.
  8. Verify dismissal is respected: close the popup, reload, and confirm it does not fire again within the period you intended.

If step 6 fails, go back to page targeting. That is almost always where the conflict lives.

Pre-launch checklist

Before you call the fix done, confirm each of these:

  • One primary popup per page goal, with the rest demoted to other URLs or later triggers.
  • No two modal dialogs can be open simultaneously.
  • Escape and the close button both dismiss the top layer and return focus correctly.
  • Layout does not shift when a suppressed popup is skipped.
  • Dismissal and frequency settings behave as intended after a reload.
  • Mobile viewport pass complete, including keyboard and screen reader announcement order.
  • Final pass with every popup enabled at once, so you test the real configuration rather than a cleaned-up subset.

If you would rather simplify the setup than maintain a queue of competing triggers, start from the WidgetJar popup widget: configure one well-targeted popup, install the embed on your registered domain, and add a second only when you can give it its own page and its own goal. Fewer, better-placed popups remove the conflict entirely rather than managing it.

  • multiple popups on one page conflict
  • popups
  • accessibility
  • popup timing
  • troubleshooting

Written by

James Holloway

Web Development Lead at WidgetJar

Keep reading

Popups8 min read

Popup Timing: When to Show a Lead Capture Popup

Popup timing decides whether a lead capture form feels helpful or intrusive. Learn how to choose triggers by page goal, respect dismissals, and keep popups…

Sarah MitchellOct 22, 2026
Get started

Your next lead is one line away.

Pick a design, make it yours and paste a single script tag. Every widget type is included, and you do not need a credit card to start.

<script src="https://cdn.widgetjar.com/wj-assets/embed.js" defer></script>