3 ms·
He's not talking about the cursor. He's talking about a circular loading animation. Like the one that replaces the submit button when you're making a post on T
by fastball 9y ago
He's not talking about the cursor.
He's talking about a circular loading animation. Like the one that replaces the submit button when you're making a post on Twitter/Facebook.
- TeMPOraL 9y agoI'm talking exactly about that spinner. It's a lie. You quickly learn it has no relation whatsoever to what's happening in the background. And indeed it doesn't, because it's an animated GIF, completely detached from any logic or networking code! (Compare the CLI spinner/fan - that "/ - \ |" animation used to indicate progress. There you know that each tick of the spinner means work has been done, because it has to be animated from code, and it's much simpler to just update it from the code that does the work.)
- fastball 9y agoThat's not true at all. In the websites I and many others build, that loading spinner is linked directly to network code. The spinner appears when a request is made. It disappears when the request is resolved.
- TeMPOraL 9y agoI was talking about animation. Show/hide on request made/resolved gives only binary information about starting and finishing something. But the spinning animation itself does not represent any operations being executed. It may very well be that the request failed and a bug in JS made it not remove the spinner. You end up with a forever-looping animation of "work", even though no work is being done. This makes the spinner an untrustworthy element.
- fastball 9y agoStill better than nothing? Sure, maybe sometimes exceptions aren't handled properly, but at least you know that it was trying to do something, rather than having users click a submit button 10x because there was no UI feedback whatsoever.