2 min read · Websites and web apps

Saving on the device versus on the server, the states saving, saved, pending send and conflict, concurrent edits, and the age of a draft.
Implementation steps
- Define which data may be kept as a draft and for how long.
- Design save states that can be verified.
- Test closing the tab, losing the connection, and opening on two devices.
- Define how to choose a version when the data conflicts.
Example deliverable
Deliverable: a draft-state plan for the field service report
Benefits
Reduces re-entry work when the connection drops.
Limits and cautions
Data stored on the device can be at risk on shared devices, and a wrong sync can overwrite newer work.
Starting references
- MDN — Client-server overview
- MDN — Web Storage API
References
- MDN — Client-server overview (accessed 2026-11-21)
- MDN — Web Storage API (accessed 2026-11-21)




