The Science Behind Pomodoro Technique
The Pomodoro Technique was created by Francesco Cirillo. Splitting deep work into 25-minute uninterrupted intervals followed by 5-minute restorative breaks prevents mental fatigue and eliminates procrastination.
Key Execution Guidelines
- Protect the 25-minute sprint:During a 25-minute sprint, resist all distractions. Jot down urgent ideas on scratchpad for your break.
- Take a real 5-minute break:Step away from the screen, stretch, and hydrate rather than scrolling social media.
- After 4 pomodoros, rest 15–30 minutes:After completing 4 consecutive pomodoros, take an extended 15–30 minute break.
How the estimate is derived
toggleTimer() starts and clears one interval, and each tick decrements a remainingSeconds counter before updateDisplay() redraws the clock and writes the remaining time into the document title, so you can see it from another tab. getDurationSeconds() reads the work and break lengths from the settings, switchMode() moves between work and rest, and onSessionFinish() fires the chime — synthesised with the Web Audio API, so there is no audio file to download — and increments the completed-session count.
When not to rely on it
The countdown is driven by interval ticks rather than by comparing wall-clock timestamps, and browsers throttle timers in background tabs to about once a second. That is fine for a twenty-five minute session in the foreground, but a heavily backgrounded tab can drift by a few seconds per session. Nothing survives a reload: closing the page ends the session, and the chime needs one interaction with the page first, because browsers block audio until then.
Privacy: health data never leaves your device
Session lengths and completed counts live in the page’s memory; nothing is written to storage and no notification service is involved, so your working pattern is not recorded.
Frequently asked questions
Does the timer keep running if I switch tabs?
It keeps ticking, but background throttling can make it drift by seconds. Leave the tab visible if the exact length matters.
Why is there no sound?
Browsers refuse to play audio before you interact with the page. Click once anywhere, then start the timer.
Can I close the tab and come back?
The session ends with the tab. There is no background worker or storage, by design — nothing is left behind.