Question: When I vote on a post and immediately refresh or quit the page, my votes are lost. It seems the issue is due to some Ajax calls that can not be completed.

My ping durations may be a factor to Stack Overflow servers which is about 270 ms, as well.

So should there not be a warning for the issue? Like while writing a post, before attempting to quit or refresh the page:

![Enter image description here](https://i.stack.imgur.com/T8i5j.jpg)

If I am guessing right, the issue can be solved by putting `my_alert_js_function()` on `.ajaxStart( handler() )`.

Please could we do this? Each time I do my action fast, I feel go back and check again as Oded said in [his comment](https://meta.stackexchange.com/questions/119259/voting-is-lost-due-to-ajax-call-latency#comment314254_119259).

The issue seems highly related to the quality of the ISP provider and if the Internet connection is shared. At work I can easily make the issue happen.

Answer: 
Being on a Network that has occasional second-long hiccups, I think this is a good idea. If voting-related Ajax calls are not completed, something like this should be shown. Nobody wants to lose votes due to latency.
Adding a popup like that would be really annoying I think.

Consider users that see something they think merits an upvote, but are not very interested in hanging around. A valid option would be not to indicate when a vote **ISN'T** completed (by a blocking popup), but to indicate when a vote **IS** completed (a visual thingy around the votescore would do I guess).

In this way you can hang around and check if your vote was cast, but you are not 'blocked' from browsing away if you want to. This way a user can choose whether to wait for it or not, without being confronted with it through a popup.