4 ms·
Wait until you get asked, by CTOs and business people, to disable F5/refreshing because it breaks the process flow but building a resilient process flow into an
by BlargMcLarg 3y ago
Wait until you get asked, by CTOs and business people, to disable F5/refreshing because it breaks the process flow but building a resilient process flow into an old app takes 10x-100x as long. Only for them to realize if you restart the system, disconnect the network, have a timeout, etc. the problem still exists. They even contemplated physically removing F5 before realizing "wait people can just click refresh or remap F5, that won't work".
Same people will also claim "we don't need a frontend dev or a UX designer".
- jholman 3y agoPhysically removing F5? Like going around to individual computers and modifying the keyboards?
- paulddraper 3y agoYeah I don't understand either
- golergka 3y agoIf I understand correctly, they are talking about an in-house system where toy would be able to do exactly that
- BlargMcLarg 3y agoThis was a webapp to be used internally in an enclosed system, so yes, modifying the keyboards. Company's own hardware.
- undebuggable 3y agoWatching DOM events on the document and disabling key events for the key code 116. One can still trigger document refresh by remapping F5 to other physical key in OS settings, or by clicking refresh button in browser toolbar.
- josephg 3y agoDoes that work? I’m surprised browsers allow websites to disable the default behaviour of F5.
- undebuggable 3y agoYes absolutely. It's possible to remap the entire keyboard at the website level.
- johnnyanmac 3y agoThat seems unnecessarily complex compared to watching for a request to the same webpage, intercepting, and dropping the request. I believe that is all the refresh function is doing. Now ofc I wouldn't give any executives that idea. Don't mess with expected user functionality, that's like UX 101. if I see my navigation tampered with, I flag that site as spam.
- undebuggable 3y agoDepends on one's determination and motives there are many ways to "disable refresh". One motive I imagine and don't approve is some want their website to feel like a mobile app, for whatever reason.
- ukuina 3y agoI don't think you can drop a window refresh event in JS?