PopupMaker/Popup-Maker

1.17.1: PUM admin bar item should display count of popups loaded on current page

lkraav opened this issue · 2 comments

Describe the feature request

We're noticing orphan popups getting loaded on landing pages, after people have removed all triggering code, but have forgotten to disable or adjust popup targeting.

Now you might be loading a bunch of extra garbage on every page load that nobody will ever see.

Solution might be simply appending a counter like "Popup Maker (1)" to indicate how many popups are loaded. We might even want to color the number with one of the new --wp preset color variables or something to draw attention.

Alternatively, a Query Monitor integration panel would be nice. I'm sure we all can't count how many times QM has saved our behinds by highlighting stray network requests, and other problems.

Use case

Improve page load speed metrics.

Example screenshots (if any)

N/A

@lkraav - Good idea.

Query Monitor tools might be useful, but I'm not sure there is something we could add there we don't already show elsewhere (including the console debugger mode).

Opted not to use the normal red, as that indicates "needs attention", but the next release will include a white circle with count of popups loaded on the page.
image