10 ms·
Why Gov.uk's Exit this Page component doesn't use the Escape key
- appendix-rock 2y ago> It’s intended to be a safety tool. A way for people in unstable, potentially violent, domestic situations to quickly leave the page. An upsetting but nonetheless incredibly interesting abnormal UX problem to solve. I appreciate seeing this much thought being put into things like this.
- kranke155 2y agoGov Uk UX team I believe is doing some of the finest work in the world.
- neilv 2y agoRelated: https://en.wikipedia.org/wiki/Boss_key https://en.wikipedia.org/wiki/Boss_key
- tetris11 2y agoThey're pretty forthcoming for what I assume to be an government agency. I wonder why the gov.uk team are getting so much publicity(?) In the last few years. As much as I love the aesthetic, I'm developing a fear that they'll soon spin off into a startup with some kind of paid model, and that government websites will regress. Irrational fear, I know, but I cant shake off the startup-vibes I'm getting when I read such posts about what is essentially a public service.
- fallingsquirrel 2y agofwiw this isn't an official gov.uk blog post. I mistook it for one at first too... I only double checked once I stumbled over the "advertising people being bastards" line.
- adw 2y ago> As much as I love the aesthetic, I'm developing a fear that they'll soon spin off into a startup with some kind of paid model, and that government websites will regress. gov.uk got started, in part, because the 2009 financial meltdown left a lot of good startup designers and engineers with not enough to do (and made civil service jobs more attractive for a bit!)
- caseyy 2y agoCompared to many other countries, UK has a computer science culture that's very open about how technology is used in every day lives, and it invites public participation in new tech. This shows a lot in the government as well as its services like BBC and NHS, and the academia. It's a very broad topic to cover so I'll be terse with evidence/examples only. UK government provides a lot of open data and APIs for the country [0], [1]. They are free and pretty much not throttled. They have a license [2] for a lot of this data which is formal but nearly as free as John Carmack's legendary hacker-friendly "have fun" license [3]. There is also a lot of historical Ordnance Survey data and historical legislation data from the National Archives. And of course, you can see the openness in how they have built gov.uk, as blog articles appear on HN about it quite often. There is also a lot of government infrastructure provided to local governments, such as gov.uk Notify [4] or a freely available NHS website CMS (which is why many NHS websites work the same). There is a guide [5] mostly intended for government services but free for others to use on building accessible, secure and quite good-looking websites. Most other governments I lived under are either technically behind UK or they have very advanced tech capabilities in certain branches of the government only (such as the armed forces) but keep it out of the public eye. Ultimately, I think it is the culture of welcoming everyone's participation in technology that makes UK gov so forthcoming and open with their tech and data. Doing this is seen as kind and civilised, which is how governments want to be seen. Of course, there are still areas of improvement in how UK gov provides data, as there always are in everything. Finally, I should mention you can find many BBC technology outreach programmes from the early days of home computing. They are all over YouTube if you search for "BCC home computing". There was and continues to be a lot of techno-optimism in the country. It is one of the admittedly not many things that persist from the pre-austerity times. [0] https://www.data.gov.uk https://www.data.gov.uk [1] https://www.api.gov.uk/index/#index https://www.api.gov.uk/index/#index [2] https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/ https://www.nationalarchives.gov.uk/doc/open-government-lice... [3] https://github.com/id-Software/DOOM/blob/master/README.TXT https://github.com/id-Software/DOOM/blob/master/README.TXT (before GPL became popular, id software code was distributed with this readme that said "Have fun") [4] https://www.notifications.service.gov.uk https://www.notifications.service.gov.uk [5] https://frontend.design-system.service.gov.uk https://frontend.design-system.service.gov.uk
- 2y ago
- nyanpasu64 2y agoI got to the furry art at the bottom of the page before realizing this was a frontend developer's blog and not the government agency itself.
- hollerith 2y agoAh, so you detected differences from the official British governmental furry art. Smart
- scott_w 2y agoThey’ve done this since the head of the Cabinet Office around 2010 set up a team to improve digital government services. There’s a lot of information published as to their methodologies and their teams present technical topics at conferences. It’s likely part of their efforts to be more transparent, work with other governments and better support departments without having to be in 50 places at once. It’ll also help with recruitment.
- tsimionescu 2y ago> when I read such posts about what is essentially a public service. Doesn't it make a lot of sense to be open about how a public service is built and delivered, maybe much more so than any for-pay service in fact?
- ascorbic 2y agoThis is all thanks to the GDS, which was formed in 2011 specifically to bring that kind of startup vibe to government. It's even based in Shoreditch, with the startups. A lot of alumni from GDS have gone on to consult with other governments, many of which have launched similar departments. The US equivalent is 18F, which involved collaboration with GDS. https://www.gov.uk/government/organisations/government-digital-service https://www.gov.uk/government/organisations/government-digit... https://18f.gsa.gov/ https://18f.gsa.gov/ https://gds.blog.gov.uk/2015/01/20/gds-usds/ https://gds.blog.gov.uk/2015/01/20/gds-usds/
- rsynnott 2y ago> As much as I love the aesthetic, I'm developing a fear that they'll soon spin off into a startup with some kind of paid model I mean, unless the next PM is Zombie Thatcher, this seems like an excessive level of privatisation.
- kortilla 2y agoI’m curious about this history of this. What page are people on that might lead to domestic abuse? What do they use frequently enough that they would learn about this exit functionality rather than just clicking a bookmark bar, closing the tab, or just switching the tab? This seems like such a contrived scenario with a solution that only works for gov uk sites. Why not teach users how to switch or close tabs with keyboard shortcuts?
- elevatedastalt 2y agoMany possibilities. Something seeking legal help, or an info page about domestic abuse itself, or something around financial literacy.
- froggerexpert 2y ago> This seems like such a contrived scenario with a solution that only works for gov uk sites. Why not teach users how to switch or close tabs with keyboard shortcuts? +1. "Close tab" is more robust, well-supported and well-known. It seems more likely a user will load an inoccuous page as a decoy, than learn triple-shift is a quick exit. Still, interesting read, to hear the reasoning. Would like to see empirical evidence/user testing.
- TheRealPomax 2y ago<partner walks in> <they see a tab getting closed> <they muscle their way in and restore it> <someone gets a black eye> vs <partner walks in> <nothing really special about a tab loading the weather> <you still live in fear but you're not getting physically abused>
- froggerexpert 2y agoI understand the happy case. When it works, great. My critiques were on the sad cases: * Presses <Ctrl><Ctrl><Ctrl>. Wait why isnt this working? Too late. * Presses <Shift><Shift><Shift> on another sensitive site that doesn't implement this. Too late. * Presses <Shift><Shift><Shift> on a poorly supported browser, or after the functionality is removed, or after it conflicts with OS-level (it might not today, but who knows about future OS updates)
- deleted 2y ago[deleted]
- kayson 2y agoHow are people expected to know about the Shift key functionality?
- kypro 2y agoThat's what I wondered. Presumably services implementing it will add info about using the button before starting the journey, but I'm surprised there's no design system guidance about this. Without that information the button is far less useful.
- kelnos 2y agoYeah, it seems a little obscure. Here's a test page with the functionality: https://design-system.service.gov.uk/components/exit-this-page/default/ https://design-system.service.gov.uk/components/exit-this-pa... One cool thing is when you first hit the shift key once, the "Exit this page" button expands vertically, and shows three small circles, one now filled in. So it makes it obvious that hitting the shift key did something related to that button. So if you hit the shift key for any other reason, you'll see something happen. But still, I agree it seems a little hard to discover.
- Izkata 2y agoOut of curiosity I edited the page to put a textarea on it, so I could see what happens when you're typing a sentence and happen to use Shift 3 times: It breaks the button. If the cursor is in the textarea, tapping Shift without any other keys will add 1 circle, but if that wasn't the 3rd one, any additional Shift will remove all the circles and they don't come back. You have to click outside the textarea and hit Shift 4 times to trigger it (the first one doesn't register any circles). It seems like they tried to prevent accidental triggers (if you have 1 or 2 circles and hit anything except Shift they all disappear, and if you hold Shift while hitting another key you don't get any in the first place), but got something slightly wrong.
- petepete 2y agoThe guidance does cover this in some detail and suggests using an interruption page that explains the behaviour before the risky journey starts. https://design-system.service.gov.uk/patterns/exit-a-page-quickly/#interruption-page https://design-system.service.gov.uk/patterns/exit-a-page-qu...
- zerovox 2y agoI understand that they couldn't use the Escape key, and so having an alternative makes sense, but I'm not sure as a user how I would ever discover the behavior of pressing "shift" three times.
- jdiff 2y agoEscape might be more intuitive but it's not more discoverable. Shift is used often when inputting information, and the mentioned visual feedback give this behavior an opportunity to be discovered. Having said that, regardless of the key the guidelines on using this pattern say that you should explicitly inform the user of the feature before they first encounter it. https://design-system.service.gov.uk/patterns/exit-a-page-quickly/ https://design-system.service.gov.uk/patterns/exit-a-page-qu...
- petesergeant 2y agoHere it is in action: https://design-system.service.gov.uk/components/exit-this-page/default/ https://design-system.service.gov.uk/components/exit-this-pa...
- VoidWhisperer 2y agoThis site is flagged by malwarebytes as being compromised for some reason - I'm assuming this is a false positive given that no one else has been having issues
- ReverseCold 2y agoWait why not have both esc x3 and shift x3 work? Any of these are "weird" keypresses right?
- Moogs 2y agoThe concern with Esc is that if you hit more than 3 times the user will be stuck on the page. The first 3 presses would trigger the redirect, the 4th press would be intercepted by the browser and stop the page load.
- vehemenz 2y ago1. This kind of browsing is more likely to be done on a phone, in private. I find the scenario a bit contrived in 2024. 2. It seems a bit weird to be concerned about UI patterns if you earnestly want this component to do its job. 3. If it's that important, the Escape key event can be added after DOMContentLoaded. Warn content authors to not overuse the component, and it would be fine. You can still have the triple-Shift key event for those cases that they specifically call out.
- FridgeSeal 2y agoIts entirely plausible that someone in an abusive relationship is a number of mitigating circumstances: - they don’t have a smartphone, or it’s been taken off them - they’re forced to use a desktop because their abuser doesn’t want them to do things in private easily - plausibly mobile has something different entirely, given that this appears to be desktop focused. - They mention escape is intercepted by most browsers to stop loading, if someone is interrupted midway and panics and starts hitting escape, they could plausibly end up _stuck_ on the page they were trying to hide from their abuser.
- thecatspaw 2y agoto fix the interrupt issue they could initially load a page with begnign information, and then load the help text afterwards
- frereubu 2y ago1. A large number of people who need this service are likely to be victims of various forms of coercive control. This is a decent, quick summary of what that means in practice (PDF): https://www.leeds.gov.uk/docs/One%20minute%20guides/One%20Minute%20Guide%20-%20Coercive%20Control%20Offence.pdf https://www.leeds.gov.uk/docs/One%20minute%20guides/One%20Mi... 2. I don't understand this comment. Surely this is a perfect example of when you want a component to work as well as possible, including UI research? 3. The mAjor point here is that the functionality of the escape key is ambiguous. It can do various things in various contexts, so you can't rely on people to use it for that, and visitors can't rely on it because it might just e.g. minimise a maximised window on MacOS, leaving the website on-screen.
- RockRobotRock 2y agoThis is a great idea! How come when I google "gov uk domestic violence" none of the govt pages have this button on them?
- andrei-akopian 2y agoMy first search result was thehotline.org, and it does have a button that redirects to google.com. (But that's a US site) > You can quickly leave this website by clicking the “X” in the top right or by pressing the Escape key twice. And it does have some kind of Escape key functionality. The gov.uk page has some listed hotlines by nation (https://www.gov.uk/guidance/domestic-abuse-how-to-get-help#get-help-and-support https://www.gov.uk/guidance/domestic-abuse-how-to-get-help#g...), but none of them are actually using that exact red button: - https://www.nationaldahelpline.org.uk/ https://www.nationaldahelpline.org.uk/ uses green bookmark in bottom right and redirects to google.co.uk - https://dsahelpline.org/ https://dsahelpline.org/ has a green area at the bottom right
- deleted 2y ago[deleted]
- deleted 2y ago[deleted]
- arp242 2y agoIdeally this should pre-load the BBC weather page so switching to it is (near-)immediate. Currently it can take a while to load. Replace all DOM and then replace URL should do it. There is also the matter of history; if I load the demo page, click that button, and press "back" then I'm on the demo page again. And of course it'll be in the browser history. I have to question how practically useful this is. Ctrl+W or middle click on tab isn't that far off. Or open private window and close that, which is a smart thing to do anyway. Never mind that computers and internet access is ubiquitous enough these days that "using the family computer" for this sort of thing isn't really needed in the first place. Overall this seems like a IE5-era solution that's pretty outdated and useless today. Perhaps even worse than useless because the implementation is so-so and protection it offers low. Overall, I'd say telling people to use private windows and teaching then Ctrl+W is probably better.
- Moogs 2y ago> Ctrl+W or middle click on tab isn't that far off The point of shift x3 is that it's consistent across keyboard layouts including laptops. I have a laptop where the location of the ctrl key is moved inward to make room for the function key. I frequently hit Fn instead of Ctrl and don't realize what's happening until I look at my keyboard. And that's not when I'm in distress. Same goes for middle click. It's not a consistent interaction. On some laptops you can left click and right click to get a middle click. On my laptop, it's a three finger tap. > Never mind that computers and internet access is ubiquitous enough these days that "using the family computer" for this sort of thing isn't really needed in the first place. In a normal situation, this is true, but this is UI design for people in extraordinary situations. Their abuser may have taken their cellphone or other devices and may not have a choice in what computer they use or when they have access to it. Nothing about this prevents private windows or Ctrl+W (assuming they have another window open so it doesn't look suspicious that they're staring at a blank desktop), it just gives victims a quick action they can take to prevent immediate retaliation.
- eviks 2y ago> I frequently hit Fn instead of Ctrl and don't realize what's happening until I look at my keyboard. And that's not when I'm in distress. Same goes for middle click. It's not a consistent interaction. Triple Shift that you can only on a single website is worse since you're even less likely to be able to use it in distress Besides, as a site you can try to add typo-similar combinations for your "hide" action (like alt+w or win+w) instead of creating a totally different one
- ata_aman 2y agoWould be pretty cool if it also changed the page navigation history to obscure where the user was before visiting bbc weather. If users taking the triple click action are presumed to be in distress, you'd want to remove the ability of the other party to simply click "back" and see where they were.
- oneeyedpigeon 2y agoThat's exactly what it does do — check out [this demo](https://design-system.service.gov.uk/components/exit-this-page/default/ https://design-system.service.gov.uk/components/exit-this-pa...). Presumably, that requires the [JavaScript History API](https://developer.mozilla.org/en-US/docs/Web/API/History_API https://developer.mozilla.org/en-US/docs/Web/API/History_API), but the whole thing requires JS anyway, so that's no more of a problem.
- gjsman-1000 2y agoI don’t understand why this is an either/or. It could be Shift x3 or Esc x1. Tell the user to Shift x3 times, but if they forget or use habit, Esc will still be an option.
- TonyTrapp 2y agoSomeone might be panicking and press ESC twice "just to be sure". Your average user won't know that the second press will cancel the redirection process, inducing further stress and potentially completely closing the opportunity to move away from the page before the abuser sees it.
- tgv 2y agoIf you tell people they can use escape, they might press it too soon or repeatedly, preventing the very action they require. Nobody intuitively uses Esc to go to another page, so it's something you really need to be instructed to do. It makes sense to me.
- YoumuChan 2y agoShift key is widely used in Eastern Asian input methods to switch between English and Asian scripts. Pressing Shift while holding Alt is the way to cycle through different input methods on windows systems. Using shift key is a decent idea for Latin script users, but is terrible for Asian script users.
- robin_reala 2y agoThat’s a less likely setup for a GOV.UK user though.
- YoumuChan 2y agoYet the gov.uk website about domestic abuse has a Chinese version (among other languages which I imagine also requires different setups): https://www.gov.uk/guidance/domestic-abuse-how-to-get-help.zh https://www.gov.uk/guidance/domestic-abuse-how-to-get-help.z... I don't think gov.uk would admit that they want to exclude those users.
- nottorp 2y agoWhich Latin script? :) Everyone on the nearby continent has some accented characters and possibly both English and their national keyboard installed. Incidentally, this is a major complaint with smartphone OS designers that only speak English and don't realize there are places where people mix languages daily. That predictive spell checker should be configurable to accept more than one language at a time...
- tuetuopay 2y agoAnd there's no need to be to speak some "obscure" language (from the point of view of the US-centric designers) to hit this issue. iOS got better at mixed french / english, but it still cannot prevent itself from correcting "the" (the english the) to "thé" (french for tea). Oh well.
- bckygldstn 2y agoA similar initiative in NZ is Shielded Site [1]. Many large sites (eg The Warehouse [2]) participate by putting an icon at the bottom of their website. When clicked, a modal pops up with domestic abuse resources. There’s a prominent exit button that closes the modal faster than a page navigation or finding the close tab button. Closing the popup returns you to a major website rather than a new tab page. And most importantly, your history contains no evidence you viewed the information. [1] https://shielded.co.nz https://shielded.co.nz [2] https://www.thewarehouse.co.nz https://www.thewarehouse.co.nz
- echoangle 2y agowindow.onload = function(){} Shouldn’t this be addEventHandler? Otherwise, you can only have a single onload callback, right?
- marcosdumay 2y agoIt should be addEventHandler if you want to have more than one handler, yes. Otherwise, it's fine.
- frereubu 2y agoThis is a great idea. I can't see the icon on the Warehouse site though - can you point me to it? How do people come to know about what the icon does?
- teruakohatu 2y agoI had to hunt around to find it. Bottom right, aligned with "Corporate" in the footer links. Next to the Facebook icon.
- ClearAndPresent 2y agoThe icon is the teal/white circle just in line and to the right of the social media icons at the bottom of the page. I missed it on first glance and would have no idea what it did.
- edaayakjaaa 2y ago[flagged]
- edaayakjaaa 2y ago[flagged]
- djtango 2y agoShould have thought like a vimmer and used caps lock instead
- YPPH 2y agoShift is not ideal either. On Microsoft Windows, pressed thrice in quick succession will prompt to activate sticky keys, and divert focus from the web browser.
- deleted 2y ago[deleted]
- airpoint 2y ago> BBC Weather’s homepage is a content-rich page. Users have a reason to be looking at it and to be looking for an extended period of time. Most of that rich content is obstructed by them bloody cookie warnings, on first visit. That’s not a very convincing simulation of “I’ve been looking at this page for the last 5 mins!”
- colanderman 2y agoI often leave cookie popovers unclicked. Sometimes they take an annoying amount of work to decline cookies, and they can be used to cover video ads anyway.
- cwillu 2y agoHmm, I don't get a cookie banner on my browser, even in an incognito window with uBlock turned off.
- oneeyedpigeon 2y agoI get one here in the UK, in incognito. It's actually one of the nicest cookie banners you'll ever see—just 75px tall at the top of the page, and it doesn't float so it disappears when you scroll. I recommend at least trying to see it, to appreciate its superiority over all the other cookie banners.
- robertlagrant 2y agoI'd rather they just didn't track me.
- JacketPotato 2y agoThey're also used for stuff like storing which locations you search for, a pretty important feature. They probably also use them for analytics though.
- razakel 2y agoThey don't if you're in the UK.
- mrinterweb 2y agoOn a UK keyboard, you use the Brexit key
- trollbridge 2y agoA while ago we did a site for a nonprofit focused on domestic violence. We preloaded Kohl’s (a department store sort of retailer in America) and fiddled with the safety exit button to make sure Kohl’s came up really quickly. If we would have worked on the site longer, I would have a done a rotation of a couple of different stereotypical shopping websites. (Kohl’s was picked by the organisations’s executive director who, unfortunately, had plenty of first hand experience with domestic violence.)
- eviks 2y agoThe explanation doesn't make sense without addressing the elephant in the room - why not teach users to use the universal "tab close" action via a common shortcut? That one is immediate unlike loading another page
- inejge 2y agoIf yours is the only tab, "close tab" will usually close the whole window, potentially leaving you with an empty desktop. Being caught staring at nothing would be suspicious in the situations where "exit page" is supposed to be used. The weather page is comparatively innocuous. (Until the word gets around...)
- eviks 2y agoFirst, you wouldn't be staring at nothing, you'd be reopening the browser / opening Solitaire or something But also a better way would be to ask the user to open a second tab (or another app) so that it's not the only tab/app. Still beats remembering a unique shortcut.
- jdiff 2y agoTime is of the essence when you're hitting an escape shortcut. That's why this component blanks the page immediately, then loads the decoy, there can be no delay even for the browser to tear down the page as it fetches the next. If you have enough time to just go and open Solitaire, you have no need for an escape button. If you are with someone who cannot know what you are doing, who has appeared suddenly, you are quickly closing what you're doing and, yes, you will be looking at a blank page without some sort of escape mechanism like this. And if it's sudden and unexpected, you might not have been anticipating needing to pop open some decoys. This seems like a complete misunderstanding of the situation.
- eviks 2y agoIf time is of the essence, why are you wasting it requiring 3 key presses and a site load? It take longer to do that vs a single shortcut, and is more visible (pages don't load immediately) > If you have enough time to just go and open Solitaire, you have no need for an escape button. You don't have enough time to complete that, you do that not to appear just staring at a blank screen. Activity of opening Solitaire is enough in itself. > who cannot know what you are doing, which is easier achieved when the browser is closed vs. when a browser is opened, since in the latter case it's easier to think about checking "previous" browser history > This seems like a complete misunderstanding of the situation. Indeed, so much so that this overengineered-but-underthought solution has none of the supposed benefits under the conditions people come up with to defend it
- hamdouni 2y agoThis makes me laugh "As a result of advertising people being bastards, more and more of what the web platform can do is ..."
- oneeyedpigeon 2y agoIt was refreshingly candid - then I remembered we're reading a government blog where they can say that kind of thing with impunity.
- globular-toast 2y agoWhat makes you think it's a government blog? Looks like a personal blog to me.
- oneeyedpigeon 2y agoSorry, I'm not totally sure why I made that assumption. I thought I'd spotted a '.gov' domain, but clearly it's not. I guess some of the writing also implies it (e.g. "Last year [...], we launched the GOV.UK Design System’s Exit this Page component") but, of course, this could just be a contractor.
- rsynnott 2y agoI _think_ they're an employee of the gov.uk design service?
- switch007 2y agoIt's a personal blog btw. And there is absolutely no way a UK Gov blog would call Google bastards.
- oneeyedpigeon 2y agoI didn't read it as a dig at Google specifically, but I accept your general point is totally correct.
- frereubu 2y agoDoes anybody have any stats for the use of these kinds of buttons? A few of our clients - victim services and honour-based abuse services - ask us to add these kinds of buttons, but I've always wondered they actually get used instead of e.g. people just closing the browser window. The issue for us with adding tracking is that it would slow the interaction which, even if it was only a few milliseconds, isn't something we want to risk. (Or worse, if the JS it breaks and the link doesn't work). I guess it would have to be some kind of post-hoc survey for victims of domestic abuse who've used a site and are now somewhere safe. Edit - thanks to @jdietrich below there are some stats on this link, which shows a correlation between events you'd expect to increase the rush of domestic abuse, such as the Covid lockdowns: https://github.com/alphagov/govuk-design-system/discussions/2923 https://github.com/alphagov/govuk-design-system/discussions/... I do wonder how they got those stats though. Edit 2 - I'm so glad this got posted! I've been wondering about this for ages and it's really nice to get some evidence for its use. Reading through the comments has also solidified my thinking around "why don't people just close the browser window" - many people who use honour-based abuse services are very computer illiterate, don't have time to learn about incognito windows / (Ctrl | Command) + W, and can only snatch computer time here and there. Abusers can look back at the browser history, but if the choice is between being discovered on an honour-based abuse website or the chance that the abuser won't look at the history, the second is clearly superior. Edit 3 - I really wonder about the three-press shift keyboard shortcut. Real lack of discoverability, and my worry would be that the lack of consistency across sites would lead to situations where people are on non-gov.uk websites and think that keyboard shortcut would work there too. Although I suppose the fact that the first shift press activates the button in some way does tie it to the presence of the button on screen. Edit 4 - It doesn't seem to be in use on any relevant gov.uk pages. The pilot on the "check for legal aid" pages seems to have ended and it's not on the pages about domestic abuse.
- closewith 2y agoMost probably they're using the sendBeacon method triggered by the visibilitychange event. sendBeacon doesn't delay the unload and asynchronously makes the network request simultaneously. https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon https://developer.mozilla.org/en-US/docs/Web/API/Navigator/s...
- joelanman 2y agoMore info on our pattern here: https://design-system.service.gov.uk/patterns/exit-a-page-quickly/ https://design-system.service.gov.uk/patterns/exit-a-page-qu...
- frereubu 2y agoThanks. Interesting to note the "interruption page" and "safety content page" parts, which I think deals with quite a few queries in the comments about how people will know what to do. Also just a note that the first two GOV.UK links under "Research on this pattern" don't include live examples any more.
- Daz1 2y ago"Content warning: This blog post references domestic abuse and violence but doesn’t go into specific detail. I’m not an expert in that topic at all, so I may not use the preferred terminology in all instances. Sorry." What the hell is this?
- BostonFern 2y agoRead the blog's "about" page.
- thaumasiotes 2y agoFor reference: > I'm an agender (I use it/its pronouns), asexual, alterhuman robot. I'm also a shapeshifting critter on the internet. This person has absorbed the idea that it's a sin to use natural language to talk about normal phenomena, and the idea that it isn't possible to know what kind of language wouldn't be sinful, but not the idea that maybe that isn't a desirable state of affairs.
- frereubu 2y agoI guess this is probably a rhetorical question. But if you've been a victim of domestic abuse you may not want to read about it when you think you're just reading about a gov.uk web component, particularly if the abuse was recent and you're still traumatised by it. The author is just trying to be sensitive to that. The language apology-in-advance does feel a bit like overkill though. I'd suggest a generous interpretation is that, given how things often work these days, they don't want people to get caught up in discussions about terminology and just want to focus on the tech.
- rsynnott 2y agoEver watched TV? "The following programme contains depictions of [whatever]" Some people, particularly people who've suffered domestic abuse, may not wish to be blindsided by a discussion of it when they think they're reading a technical blog.
- jstummbillig 2y agoThis is perfect. Whenever the idea pops up that design/code/system is done because of AI I am mostly confused. Everything is so bad and requires so much though to even get to "decent"! Our current standards are so low, because we can not afford higher standards — but when paying attention to the world, anywhere, it does not even take effort to find an instance of a (systemic) design problem that could be fixed. Granted, reconfiguring our system to pay for that is an outstanding issue, but I don't think that's because it requires much fantasy to find things that could be done and that would be appreciated by us and the people around us.
- shultays 2y agoIn virtually all browsers, pressing Escape while a webpage is loading stops the loading process. Whoa, never knew about this or noticed it
- jonathanstrange 2y agoIt's how people read the New York times.
- tanbog45 2y agoI make sites for non-profits regularly and have been asked to add exit/escape buttons a few times. There more time Ive spent thinking about the problem and researching solutions the more I think they are a bad idea. 1. Lots - if not most - traffic is from mobile these days. Most people already know the fastest way to exit a page on mobile - the home button/action. Adding anything else is just adding confusion. 2. Unless you are going to great lengths - ie pre loading a page and maybe dropping parts of the dom and dealing with evidence in the history - are you actually doing anything much to help the user exit your site? How motivated/skilled a person are you defending against? 3. If your exit button is just a glorified link or redirect what is the point? It will still be in the history and if they have slow internet they could end up just staring at your site while the redirect loads. 4. For some organisations having such buttons is more about "showing" they have it than how useful it actually is to the user. 5. I have tried to push for a page/link to basic internet safety information. Educating visitors would be much better than trying to engineer their personal security day. 6. I've struggled to find good academic/research work on such features. Seems like it would be a good area for a UX researcher but I've not found much actual work.
- hengistbury 2y agoI see these points as reasons why it might not be a good idea, but they don't explain why it is a bad idea. Other methods for leaving the site still work. Even if the button isn't the best way to leave the site, if it helps in more cases than it hurts then it's a net benefit. These buttons are essentially panic buttons, and when a person is panicking the big red exit button might end up being the only exit they can find.
- tanbog45 2y agoThis is way outside my area of knowledge, but when under stress do humans actually use things like panic buttons? Or do they fall back on week known patterns of behaviour? My gut tells me that the big red button might not even get noticed.
- hengistbury 2y ago
- DrBazza 2y agoIdeally Jira would have something similar so that when you create a new issue and accidentally click somewhere or press escape, it doesn't delete the ticket you've just spent 5 minutes creating.
- deleted 2y ago[deleted]
- imdsm 2y agoI had a situation where I needed to speak to Police some time ago. An sms about the weather was sent, which allowed me to speak to someone, and then after the call, it took me to bbc weather. It was brilliant and I really commend it.
- Symbiote 2y agoI found a live example here, on the page where you can check if you are eligible for legal aid: https://www.gov.uk/check-legal-aid https://www.gov.uk/check-legal-aid then click "Start now" then "Domestic abuse"
- sambeau 2y agoThis smells to me of a team overthinking something so much that they land on something unintuitive. It smells of "over-fitting" — a solution way too specific when something general and flexible is needed. Pressing shift three times is clever… but way too clever. Even if you stick a giant popup saying "hit shift three times to quickly exit" I'm not sure anyone in a panic will remember—loads of people don't even know which key is shift, especially when there's three buttons on a keyboard that look the same and only two are the same. I've come across people who always use shift-lock and did't realise you could use shift for anything. I'd be interested to know what UX tests they actually did, and who with. If I was going down the press a key three times, I would have gone with pressing any key three times apart from the number keys (plus an info box when you enter the page—"hit any key 3 times to quickly exit to the weather"). Most people, I'm sure, would mash the spacebar in a panic but if they missed then it would still work. What I would have preferred to test would be 'mashing'/chording — pressing more than one non-modifier key at the same time, so a user could just smash a load of keys at the same time in a panic. Going to the Weather page is a great idea, though.
- crimsoneer 2y agoYeah, this was my reaction... I wonder if they collect logs of how many people use the triple shift function. I do like GDS' focus on research and service design, but this feels slighly over-engineered from that space.
- monkpit 2y agoThe logs are just noise without a way to prove the users’ intention to use the triple-shift feature for its intended purpose. Maybe you could normalize it by listening for triple-shift presses on all pages on the site (not just sensitive ones) and calling that a baseline of accidental events. But, how do we know that events in the baseline are truly accidental? What if users learned the behavior and tried using it on pages where it’s not implemented? There’s just no good way to get analytics on this feature without interviewing users somehow.
- whalesalad 2y ago[flagged]
- mooktakim 2y agoHow would anyone know that you can use the shift key? Closing the tab/page is just more natural as its something you do all the time.
- jdiff 2y agoIt's advised in the implementation documentation to add a page explaining it. Shift is also used naturally when inputting information, with the visual feedback inside the button giving an opportunity for discoverability.
- mooktakim 2y agoIt reminds me of the old lastminute.com (I think) button that would turn the whole front page into an Excel spreadsheet so when the manager walks by, they only see spreadsheets on your screen lol
- globalise83 2y agoNow that is a real use case!
- ykonstant 2y agoYou can exit the UK Government, but you can never escape.
- duxup 2y agoI enjoyed reading their thought process. That was a good read. But I agree the end result feels like an over thought process that comes up with something completely counter intuitive that someone would seem to need to trigger at a moments notice. To some extent this seems to be one of those "well they did something" solutions that for a lot of work, provides near zero value.
- kqr 2y agoHypothetically, wouldn't an abuser start to find it suspicious when a blank page loads BBC Weather as they enter the room?
- mcculley 2y agoBeing unable to use the escape key is another reason why web apps will never be as consistent as desktop apps.
- adamrezich 2y ago> In virtually all browsers, pressing Escape while a webpage is loading stops the loading process. Wow, you learn something new every day! Kinda weird that we got “Backspace to go back” out of web browsers some time ago yet this still exists, though.
- int_19h 2y agoBackspace was overloaded whenever text input fields on the page were involved, so accidentally pressing that to mean something else entirely and losing data as the result was too common to not address. Escape OTOH was never used for anything else in browsers, as far as I remember.
- thih9 2y agoWhile a weather page sounds good, perhaps something that loads fast would be also a good pick? Then again, the html code shows the button itself as an anchor tag, so it seems easy to customize the target url.
- matteason 2y agoThe component has some JavaScript which blanks out the page immediately after the button being pressed, so if it takes a while for the browser to load the weather page it shouldn't matter as much https://design-system.service.gov.uk/components/exit-this-page/ https://design-system.service.gov.uk/components/exit-this-pa...
- jandrese 2y agoIt seems like the shift key is still problematic, especially if it is conflicting with stickykeys. Why not use for example the letter 'q'? You could set it up as a mnemonic that you need to quit quit quit as fast as possible. But for the most part I agree that this is silly and unnecessary. Ctrl-W is a better solution and this would really only make sense if it also scrubbed the site from the browser's history at the same time. In fact this solution is worse because the abuser can just hit the "back" button when they see BBC Weather loaded.
- layer8 2y ago> And Esc is the only keyboard key that doesn’t count as user interaction for the purposes of transient activation. It’s pretty weird that pressing the Shift key is considered more of a user interaction than pressing Escape.
- changing1999 2y agoMy only criticism of this approach is that it asks highly sensitive users to learn a critical keyboard shortcut that will not work anywhere else. What will happen if users attempt to triple press "shift" on any other surface that doesn't support this? Because that's highly likely. Instead of introducing a new (hidden) shortcut, I would rely on clear visual cues and intuitive (meaning, already common) interactions. E.g. opening the form in a modal; clicking anywhere outside of this modal closes the modal and loads the weather page. The clickable background should be clearly identified as a special feature, e.g. tiled text "exit page" all over it.
- amiantos 2y agoIt's fun to read so many people who can't see past their own nose, who declare the scenario contrived and the solution over-engineered, despite having no frame of reference for the need of this button and thus having no ability to properly dogfood the feature, speaking so confidently from their ignorance. Great HN thread.
- _5hxt 2y agoTried example. No redirect occurred after 3 SHIFT presses, had to use both ESC and SHIFT to trigger it somehow. The irony.
- skrebbel 2y agoIn case the author reads this, I tried the test page on a newish Windows install and at the third shift-press, a "Do you want to enable Sticky Keys?" Windows dialog opened, and the third shift keypress didn't make it to the browser so I didn't exit. Instead of nervously staring at the weather, I was nervously staring at the potentially damning content I was trying to get away from, plus a weird Windows 7 themed dialog window that I'd never seen before nor really understood. I wouldn't be surprised if this will happen for anyone trying the triple-shift on a vanilla Windows install who doesn't actually use Sticky Keys, nor explicitly turn it off (ie a majority of visitors).
- debugnik 2y agoThat was my first thought, how did they not consider sticky keys?! It even makes a sound! The prompt triggers on the fifth press but it's easy to have had already queued two presses beforehand. This risk is much worse than whatever layout differences and interactions with VoiceOver they observed for Control.
- wdb 2y ago> The JAWS screen reader in Chromium would register the first Shift keypress twice, Sounds like they are relying that a screen reader user is using a specific version of JAWS? Do they really expect people to upgrade JAWS to the latest version when it costs $1200? I understand it's important software for the audience still a lot of money.