When clicking a button like the 'like' button on Facebook, the like seems immediately (read: instantly) executed.
How is the user guaranteed that the Ajax call actually succeeded?
Is the 'like' visible at the client only executed as a response of the server?
Visually, it seems to happen instantly and I've never experienced it otherwise.
The response from the server after clicking 'like', looks like a bunch of code that I don't understand: