The problem
Tap like, and the button waits for the server. In the video's photo post the heart turns into a spinner, and the like shows 800 ms later. That is 800 ms of spinner on every tap. Past 100 ms, a tap stops feeling instant.
The fix
Keep the same like button and the same 800 ms server. Move the wait backstage.
- Update first. Fill the heart and bump the count the moment it is tapped: 0 ms.
- Sync behind. Then send the request. The server still takes 800 ms, and nobody waits for it.
- Roll back out loud. The request can fail. When it does, undo the heart, put the count back to 128 and say why in one line, with a retry.
Why it works
The tap gets its answer at once, so the button feels instant before it is. The server's 800 ms has not gone anywhere: it runs behind the interface, where nobody watches a spinner. The rollback keeps the screen honest. Without it, the server said no and the heart still says yes.
How to apply it
Keep it for actions that almost always succeed: likes, toggles, reordering. Never payments. For each one, show the result on the tap and send the request behind it. Then plan the failure: the old state back, one line that says why, and a retry.



