Menu

Offline, one of our free tools blames your web address and the other says nothing at all
📰

Offline, one of our free tools blames your web address and the other says nothing at all

DEV Community: javascript·Daniel Pertu·8 days ago
#N5RxolW5
#devtojavascript#devto#dev#offline#generate
Reading 0:00
15s threshold

Our marketing site registers no service worker and writes nothing to Cache Storage. You can confirm both in a console on any page of it:

( await navigator . serviceWorker . getRegistrations ()). length // 0 ( await caches . keys ()). length // 0

Enter fullscreen mode

Exit fullscreen mode

So "offline" is not a feature we built, it is whatever the browser and our code happen to do. I ticked Offline in DevTools and went through the public pages to find out what that is. There turned out to be four different answers, and two of them are bugs.

1. The tool that does arithmetic keeps working

The round planner computes a running order in the browser from numbers you type. Offline, it carries on exactly as before: pressing "Add a round" moved the finish time from 1 hr 51 min to 2 hr 04 min with zero network requests. Same for the profit calculator and the team name generator. Nothing there needs a server, and that was already true before anybody thought about offline.

2.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.