4 ms·
>it triggers the page load when the user starts pressing their mouse This breaks the standard GUI interaction model. Buttons are typically triggered on mouse-u
by noisem4ker 6y ago
>it triggers the page load when the user starts pressing their mouse
This breaks the standard GUI interaction model. Buttons are typically triggered on mouse-up events, not mouse-down, and there's probably good reasons for that.
Any client-side hacks that attempt to improve the perceived page speed are somehow bound to break something. If there really is a simple way, it's already been implemented at the browser level, for all websites. Link prefetching is already a thing. Do you want fast pages? Make your server-side rendering fast.
- grx 6y ago> Do you want fast pages? Make your server-side rendering fast Yeah.. imagine being so thirsty for page load efficiency that you ignore all the bloat of JavaScript and poor server-side rendering but instead directly skip to breaking the standardized GUI/UX
- dieulot 6y agoinstant.page is 1.1kB and encourages efficient server-side rendering.
- grx 6y agoSorry if my comment came in kinda offensive, it's a general stance I was criticizing, not your project in particular! Your offer is based on an existing demand, so who should feel addressed are those who use solutions like yours.
- CraftThatBlock 6y agoThis is incorrect. It starts loading on mouse down, but still acts on mouse up.
- mcintyre1994 6y agoIt doesn't - try drag-dropping one of the links in their sidebar into a new tab. You get the page changed before you lift the mouse button.
- seabass 6y agoNo. Mouse down on any of the sidebar links on that site to see for yourself.
- tjeannin 6y agoNot the case on the https://instant.page https://instant.page website. If you mouse down links, the page changes.
- deleted 6y ago[deleted]
- boublepop 6y agoThere’s a joke about two bankers walking down wallstreet. One says to the other: “my gosh look, there’s a 100$ bill on the ground”. The other without looking down turns to him and says: “Impossible! iIf there was 100$ on the ground someone would have picked it up!”
- reaperducer 6y agoButtons are typically triggered on mouse-up events, not mouse-down, and there's probably good reasons for that. So you can drag the link somewhere else. Like to the desktop or a text editor or a terminal window.
- hlandau 6y agoYep. This convention also enables the cancellation of a click, which can be useful if you realise your error mid-click. Another piece of software egregious for violating this UI convention is Adobe Reader. I remember upgrading to, IIRC v9? and finding that all buttons in it had been changed to actuate on mouse-down, and wondering what the christ the developers were thinking. Perhaps they thought it made their software seem more "responsive".
- chrismorgan 6y agoBut note that keyboard things operate on key down. Software operating on key up has caused me surprisingly much grief. I can think of two systems I interact with, off the top of my head, that trigger things on Escape key up, which is badly wrong in that I often do Alt down → Tab press → no wait, I do want to be here → Escape press → Alt up, and so the browser which didn’t see the Escape down (because it didn’t belong to it) does see the Escape up, and improperly cancels what I was in the middle of or similar. This is so annoying.