6 ms·
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 p
by sseagull 2y ago
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.
- jjice 2y agoI 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.
- bestest 2y agoI 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.
- alt227 2y ago> What you're mentioning is something completely different. 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.
- deleted 2y ago[deleted]
- The_Colonel 2y agoI don't think this is often called "pop-up", mostly I see either popover or tooltip.
- nerdponx 2y agoAnd surely this new API will not be abused. Right?
- lolinder 2y agoAt 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.
- hhreefgguu 2y agoIt 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.
- jwells89 2y agoIt 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.
- notatoad 2y agoit 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.
- deleted 2y ago[deleted]
- mst 2y agoI 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.
- 1231232131231 2y agoThis 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.
- TrueDuality 2y agoWhich people still hate because its mostly marketing trash that gets in the way of whatever they were trying to do on the underlying page.
- marginalia_nu 2y agoThey'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_Colonel 2y agoThe big difference is that there are very few valid use cases for popups, but many useful ones for popovers.
- marginalia_nu 2y agoKeep 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.
- maccard 2y agoNo, 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.
- Zak 2y agoBoth things are true. Popups are more disruptive because they remain even after the page that spawned them is closed and often obscure their origin.
- efilife 2y agoI've seen exactly this comment somewhere on HN already. What's going on?
- jffry 2y agoPerhaps 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&query=%22kinda%20funny%20that%22&sort=byDate&type=comment https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...
- sseagull 2y agoDeja 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” :)
- darby_eight 2y agoIt 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.
- gwd 2y agoI'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/ 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.
- ysavir 2y agoI 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.
- The_Colonel 2y agoObnoxious modals with ads would still download the content dynamically with JS so the NoScript would still do the job.
- cjpearson 2y agoI 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.
- gyomu 2y agoThe 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.