Working on an urgent document in Google Docs only to see the top status bar freeze on “Saving…” or display the orange warning banner “Trying to connect. To edit offline, turn on offline…” can create immediate anxiety about losing unsaved edits. When Google Docs cannot establish a persistent bi-directional WebSocket connection with Google cloud servers, edits remain buffered in local browser memory. Methodical troubleshooting restores real-time synchronisation and prevents data loss.
Safely Safeguard Unsaved Changes Before Refreshing
Never immediately refresh or close a tab displaying the “Trying to connect” banner, as uncommitted buffer changes can be lost:
- Click inside the document body and press Ctrl + A (or Command + A on Mac) to select the entire document.
- Press Ctrl + C (or Command + C) to copy the text to your system clipboard.
- Open a local text editor (such as Notepad on Windows or TextEdit on Mac) and paste your content as an immediate safety backup.
- Alternatively, open a new browser tab and navigate to
docs.google.comto verify whether Google services are accessible from your network.
Disable Conflicting Browser Extensions and Ad Blockers
Aggressive privacy add-ons and content-filtering extensions frequently intercept or terminate the background heartbeat pings Google Docs uses to sync operational transforms:
- Open a new Incognito window in Google Chrome (Ctrl + Shift + N) or private window in your browser.
- Sign in to Google Docs and open the document. If saving functions normally without connection warnings, an active extension is interfering.
- Navigate to
chrome://extensionsin your regular window. - Temporarily disable third-party ad blockers, script blockers (such as uBlock Origin or Privacy Badger), and grammar-checking tools.
- Reload the document tab and confirm that the status updates to Document saved to Drive.
Toggle and Reset Google Docs Offline Mode
The official Google Docs Offline extension maintains a local IndexedDB cache. If this local storage database becomes corrupted, Docs repeatedly fails to synchronise:
- Go to the main Google Drive dashboard at
drive.google.com. - Click the Settings gear icon in the top-right corner and select Settings.
- Under the General tab, locate the Offline checkbox.
- Untick the box to disable offline mode, wait 10 seconds, and tick it again to force Drive to recreate its local synchronisation database.
- In Google Chrome, visit
chrome://extensions, find Google Docs Offline, click Details, and ensure Site access is configured to On all sites.
Clear Site-Specific Cookies and Cached Web Data
Stale authentication cookies and broken service workers can cause persistent connection timeouts on Google domains:
- While on the Google Docs tab, click the View site information icon (tune icon or padlock) in the browser address bar.
- Select Cookies and site data.
- Click Manage on-device site data.
- Click the bin (trash) icon next to all entries for
google.comanddocs.google.com. - Click Done and refresh the page. Sign in again if prompted and verify that document changes save smoothly.
Flush DNS and Bypass Restrictive VPN or Proxy Tunnels
Corporate VPNs, proxy firewalls, and corrupted local DNS resolvers often drop keep-alive SSL connections to Google synchronization endpoints:
- Disconnect VPN: If using a commercial or corporate VPN, disconnect temporarily to determine if your tunnel is throttling WebSockets.
- Flush Local DNS on Windows: Open Command Prompt as Administrator and run:
ipconfig /flushdns - Switch to Public DNS: Configure your network adapter to use Google Public DNS (
8.8.8.8and8.8.4.4) or Cloudflare DNS (1.1.1.1) to ensure clean name resolution to Google edge servers.