In “Your On-Device AI Works Offline. Does Your Web App?” (https://dev.to/gde/your-on-device-ai-works-offline-does-your-web-app-38kj), Raju Dandigam uses a React brief editor to ask what a user can still do after closing or reloading a web page without a connection. The demo tracks three prerequisites separately: the application files, the saved draft, and the browser model's readiness for the requested task.
Give the editor and the model separate readiness checks
Dandigam's production build generates a service worker with an explicit list of application files and a cache name derived from their content. During installation the worker precaches that list. The root navigation tries the network and falls back to the cached page, and the worker handles versioned static files from its allowlist. This keeps the editor's cache focused on the files it needs to reopen. The demonstration keeps benchmark model and Wasm assets out of that initial cache and checks native AI availability through the browser API.
The draft has a separate failure mode. The example saves a small synthetic brief in localStorage. If a write fails, the editor tells the user to copy the brief before closing. That check matters even if a reload can successfully render the editor. An empty editor can be a successful shell load and a failed recovery at the same time.
Verify the result after a full reload
The article uses the production build and preview server because its development server does not register the production worker. For the returning-user test, the author saves a sample draft while online, reloads to establish service-worker control, then disables connectivity and reloads again. The reported Headless Chrome 153 result recovered the exact saved text. A separate fresh-profile test represents a first visit with no installed shell.
The reported recovery covers the editor and its saved input. Dandigam calls for a separate test of native inference after preparing the browser model. Those outcomes give the UI enough information to tell users whether they can reopen a draft, keep editing, or also use an AI action.