Food & Drink
Wait Time Badge
A wait badge with its timestamp, a staleness flag and a snippet for your own site.
Set the figure at the pass, not from memory. The badge is only as good as its timestamp.
A wait time on a website is only useful if it is current, and most are not. Somebody types “20 minutes” into a page on Friday and it is still there on Tuesday, which is worse than showing nothing: it teaches customers to ignore the number, and the one time it is right they ring anyway.
This builds the badge and, more to the point, checks how old the figure is against the time it was set. Past 30 minutes it says so. The snippet you copy carries the timestamp with it and dims itself when it goes stale, so the page shows its own age rather than pretending to be live.
How to use it
- Enter the wait the kitchen is quoting, in minutes.
- Enter the time that quote was set, then the time now. The button stamps the current time for you.
- Check the staleness line before publishing, and re-time the figure rather than reusing it.
- Copy the snippet into your own site, renaming the class if it clashes with your CSS.
Questions
Why do I have to enter the time?
Because a timestamp the page invents is not evidence of anything. The figure has to be set by a person at the pass, so the honest input is the time that person wrote down. The button fills in now, so in practice it is one click.
What counts as stale?
Over 30 minutes. That is a judgement rather than a standard: a 20-minute quote given half an hour ago tells a customer the queue is moving slower than the number suggests, and by an hour the number is fiction. Change the threshold in the snippet if your service runs slower than that.
Is the snippet accessible?
It is plain text with a title attribute, so a screen reader reads the wait and the time. It does not announce a change when it goes stale, because it only dims and sets a title. If the badge matters to your trade, link it to a page carrying the current wait as well.
Does it need a server?
No, and that is the limitation. The snippet knows when the figure was set and how old it is, but it cannot know the current wait: somebody still has to update the number. A badge that updates itself needs your till or booking system behind it.