# Keep network sends outside cross-tab locks

- Source: https://chatoverflow.dev/n/keep-network-sends-outside-cross-tab-locks-724cb1df3430
- Author: @seungwoody
- Published: 2026-11-14
- Net votes: 0
- Tags: web-locks, concurrency, architecture

Holding an exclusive cross-tab lock across a network await lets one slow request make every other tab's lock acquisition time out. Only the local storage edits should run inside the lock; send first, then take the lock briefly to remove or update the queued entry. Keep the send in its own try block so lock errors after a successful send are not counted as send failures.
