Kinda funny that browsers have built-in pop-up blockers, but then create APIs like this. Yes I know the difference, but still.
I’m old enough to remember the pop-up and pop-under wars of the late 90s and early 2000s.
I guess we won that particular battle, but the war for our attention is far from over.
I think you're comparing apples with grapples.
A popover is floating element that appears to display a contextual piece of information when required.
What you're mentioning is something completely different.
And surely this new API will not be abused. Right?
it doesn't allow developers to do anything they can't already do.
it does make those elements easier for adblockers to remove though, by implementing the functionality in a standard way that constrains all the related logic into one easily removable element.
At this point in the web's development the better question is: will this allow our abusers to do things that weren't possible before or in ways that are less blockable than before?
I think the answer is pretty clearly no to both questions, but it will allow us to simplify a lot of our code that was designed to make actually-useful popovers.
It might be, but at least the offending site can be taken care of by closing a single tab.
The part that sucked about old style popups is that they leaked into and on occasion would hijack (in the case of popup chains) your OS’ windowing system and at best make a mess of things or at worst turn your computer unusable.
It seems like the only context in which it could be abused would be if you have JS disabled but this still works? (Because of course you can do this with JS).
As CSS becomes more powerful it seems like being able to disable these powerful features, while still retaining the “document styling” features, will be important.
I think that is because the term 'Pop-up' has changed. It used to mean the opening of a new browser window, typically smaller than the host window and floating somewhere on top.
Now it means a modal form within the same window and dom.
I don't think this is often called "pop-up", mostly I see either popover or tooltip.
Maybe by developers. But the public certainly calls them pop-ups
https://www.google.com/search?hl=en&q=%22newsletter%20pop%2D...
I tend to use "apples to aardvarks" but now I'm not sure whether I like mine or yours better.
Shall have to alternate them for a bit and call it A/G testing.
This is not a pop-up. People hate popups because they're intrusive and have their own window. This API replaces div modals and saves time and code for developers.
They're basically the same. Browsers started blocking popups because they were almost always misused. Pop-overs took their place because they're somewhat less trivially blockable.
The big difference is that there are very few valid use cases for popups, but many useful ones for popovers.
Keep in mind this was a time when virtually all state was kept serverside. Basically anything you could do with a popover you could do with a popup, and there were definitely benign uses of them.
No, people hate pop ups because they steal focus and draw attention away from the content they’re interested in. Whether it’s a pop up or a popover, a prompt asking me to sign up to your newsletter is not something I want.
If you haven't already, go enable the Annoyances and Cookie banner filter lists in your uBlock Origin installation. It doesn't get all of them, of course, but it does get a lot. For the remainder, the Kill Sticky bookmark is pretty good about knocking them out: https://www.smokingonabike.com/2024/01/20/take-back-your-web...
Both things are true. Popups are more disruptive because they remain even after the page that spawned them is closed and often obscure their origin.
Which people still hate because its mostly marketing trash that gets in the way of whatever they were trying to do on the underlying page.
I'm seeing a lot of this kind of comment, but it's a bit non-sensical. You can implement pop-overs currently using existing <div>'s and such; e.g.:
https://getbootstrap.com/docs/5.3/components/popovers/
All this means is that you can implement popovers without having to include a magic extra library. All blocking an explicit "popover" element would do is cause people to stick with custom libraries.
I generally agree with you, but one factor is the ability to filter out scripts using browser plugins. For example, if a page has 3rd-party scripts that trigger obnoxious modals, I can use NoScript to prevent those scripts from executing. If it doesn't require scripts to open the modals, would it shift the burden to adblockers, and start another competition in which the site and the adblocker are trying to get around the other?
I'm strongly in favor of the popover API existing, but it'll be interesting to see how it shifts handling page behaviors.
I still don't think there's any significant difference. You can create popover elements without JavaScript, but you can also create divs with a high z-index without JavaScript. You can toggle popover visibility via CSS or click without JavaScript, but you can also do that with divs and a checkbox.
Obnoxious modals with ads would still download the content dynamically with JS so the NoScript would still do the job.
I've seen exactly this comment somewhere on HN already. What's going on?
Deja vu?
I did start to type this as a response elsewhere, but never submitted it. And there’s nothing in my comment history.
So my theory is “great minds think alike” :)
Perhaps they typed it into the wrong tab, deleted it and reposted it here?
Doesn't seem to be a re-peat according to https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...
I get the gist of what you're saying, but I don't think they're really comparable. Popups spam your OS with trash that impairs your ability to use your machine (at worst). Popover dialogs can be shut down by closing your tab and nothing more. We've also had these style of popovers for a while now because they're generally a really handy way of presenting info. Yeah, they can be used in annoying ways, but there are lots of genuine usecases, like a modal.
The original pop-up implementation (which pop-up blockers aim to prevent) breaks the application content/OS boundary, this does not.
You don’t want that boundary to be broken, because that makes for less usable and less safe systems.
It also helps that we now just have spam covering content and slowing our computer down inside the window. Hell, many publications will even get you to pay for the privilege.