Update: no, I’m still experiencing cases where I vote, press control+F5 and find the vote gone. It might be related to the fact that vote buttons still bold and unbold even when I’m not online.
Yes, when you click the vote link, Javascript bolds/unbolds it immediately, while sending a request to the server. If there’s a problem with your connection, it will appear as though you’ve voted but when you go back the link will not be bold, since your vote will not have been received. If you don’t have enough karma to downvote, the response from the server will trigger a callback which cancels the bold and informs you of your inability to downvote, assuming you have a good connection and you’re still on the page.
I believe the button bolds before the data is stored on the database—I’ve noticed edits to the texts of posts vanish when I close the window immediately after submitting them.
After what? The vote button always remains bold for me. (This, incidentally, implies that one can only vote once—either up or down.)
At the moment I can’t find a post that I’m sure I voted on that doesn’t have one button bolded, so I might just be confused.
Update: no, I’m still experiencing cases where I vote, press control+F5 and find the vote gone. It might be related to the fact that vote buttons still bold and unbold even when I’m not online.
Yes, when you click the vote link, Javascript bolds/unbolds it immediately, while sending a request to the server. If there’s a problem with your connection, it will appear as though you’ve voted but when you go back the link will not be bold, since your vote will not have been received. If you don’t have enough karma to downvote, the response from the server will trigger a callback which cancels the bold and informs you of your inability to downvote, assuming you have a good connection and you’re still on the page.
I believe the button bolds before the data is stored on the database—I’ve noticed edits to the texts of posts vanish when I close the window immediately after submitting them.