There a stupid bug - after you vote, the arrow is hidden, but it will accept clicks :-) So you can continue to upvote many times, and the score text updates. When you refresh, the actual vote is restored. Tested with Safari 419.3.
I don't think I count this as a bug. If you do something stupid, you see something stupid, but it doesn't affect anyone else.
Finally, voting without refresh
41–45 of 45 posts
Re: Finally, voting without refresh
#42There a stupid bug - after you vote, the arrow is hidden, but it will accept clicks :-) So you can continue to upvote many times, and the score text updates. When you refresh, the actual vote is restored. Tested with Safari 419.3.
I don't think I count this as a bug. If you do something stupid, you see something stupid, but it doesn't affect anyone else.
Re: Finally, voting without refresh
#43There a stupid bug - after you vote, the arrow is hidden, but it will accept clicks :-) So you can continue to upvote many times, and the score text updates. When you refresh, the actual vote is restored. Tested with Safari 419.3.
I don't think I count this as a bug. If you do something stupid, you see something stupid, but it doesn't affect anyone else.
Adding the visual effect of idempotency on the frontend is probably a two-second fix, anyway.
Re: Finally, voting without refresh
#44Earlier quoted context omitted.
You could always update the UI on the assumption that it will succeed, and then check the return value. If you get failure, notify the user somehow. Making the UI seem a slight bit more responsive might not be really worth it, of course.
UI latency is actually very important, and generally under-appreciated. Sometimes, it's better to be fast than perfect.
Re: Finally, voting without refresh
#45Don't worry, I'm not going to post a link about each releaselet. I just wanted to thank PB for helping us.
I've peered at the Javascript and most of its obvious even without knowing Javascript :-) Might someone answer a few questions?
node.href just returns an empty text/html document when fetched. Does this happen synchronously or not? What do browsers do when they're given text/html as the content of an image and what do the specs define they do? When is ping freed? Is it automatic when it goes out of scope and does that suggest that the image fetch is synchronous?
I'm trying to understand what delays occur when and whether on a larger scale you'd need to manually free some of these resources.