Free guideThe newsletter. Real UI fixes by email, and a free 35-page guide to AI design skills.
Ship Better UI

, 1 minute 4 seconds

Make it feel instant before it is

The rule

Update the interface on the tap, in 0 ms, let the 800 ms request run behind it, and if it fails roll back and say why in one line with a retry.

Try it

Apply the fix

Prompt for your AI coding tool

Paste it into Claude Code, Cursor or any AI coding tool, then share the page you want fixed.

Review the interface I share for actions that make people wait for the server before anything changes. Make them optimistic, and change nothing else.

1. Update first: show the result on the tap, in 0 ms. For a like, fill the heart and bump the count the moment it is tapped.
2. Sync behind: then send the request. The server can still take 800 ms, but nobody watches a spinner.
3. Roll back out loud: if the request fails, undo the change (the count goes back to what it was) and say why in one line, with a retry.

Only do this for actions that almost always succeed: likes, toggles, reordering. Never payments.

Keep the content, the features and the layout. When you are done, list each action you changed, and what a failed request now shows.

More prompts like this in the free guide 

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.

  1. Update first. Fill the heart and bump the count the moment it is tapped: 0 ms.
  2. Sync behind. Then send the request. The server still takes 800 ms, and nobody waits for it.
  3. 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.

Free guide · 35 pages

Get fixes like this by email

Join the newsletter and get the 35-page guide to AI design skills: the skills, the order to use them in, and prompts to copy.

Watch it on

More on interaction

All 8 lessons on interaction