Offline tasbih counter
Load this page once and it keeps working with no connection at all. Nothing about counting needs the network, because nothing about your count ever leaves your device.
Where this actually matters
A masjid basement. The lower floor of a car park. A plane at 30,000 feet. A village with one bar of signal that comes and goes. A phone with the data switched off to save it.
Those are ordinary places to make dhikr, and they're exactly where a counter that needs the network stops being a counter. This one was built for them rather than adapted to them afterwards.
How it works
On your first visit the page installs a small service worker, which is a piece of code your browser keeps and runs before it reaches the network. It stores the page, its styles, its script and its fonts.
Open the page again and the browser tries the network first, so you get any update. If there's no connection it serves the stored copy instead, and the counter opens exactly as it did before.
The fonts matter more than they sound. They're served from this site rather than fetched from Google, so an offline load has no missing text and no fallback face. Nothing on the page reaches out to another domain at all.
Your count and your history stay too
The count is written to your browser on every single tap. Not on a timer and not when you close the page, every tap. Losing signal, closing the tab or restarting the phone leaves the number where it was.
Finished sessions go into a small database on the device, which is what the history page reads. That page works offline as well, because the data was never anywhere else.
Installing it makes the storage safer
Browsers clear the stored data of sites you visited once and never returned to. iOS is the strictest: Safari can clear a site's storage after 7 days without a visit.
Adding the app to your home screen changes how the browser treats it. The page also asks for persistent storage on load, which browsers grant on engagement signals. Neither is a guarantee, and this page isn't going to pretend otherwise. What's true is that an installed app is much less likely to lose your history than a tab you opened once.
If a long total matters to you, install it. On Android use Install app from the browser menu, and on iPhone use Add to Home Screen from Safari's share sheet.
What doesn't work offline
The hadith links. Every preset carries a link to its narration on sunnah.com, and following one needs a connection because it goes to another site. The Arabic, the transliteration, the meaning, the count and the reference itself are all on your device and read fine without one.
Updates, too. A new version arrives the next time you open the page with a connection. It never swaps itself in mid-session, so a deploy can't interrupt a count.
Common questions
- Does this tasbih counter work without internet?
- Yes, after the first visit. The page stores a copy of itself in your browser, so opening it again with no connection loads it from the device rather than the network.
- Do I need to install an app?
- No. It works offline in a normal browser tab. Installing it to your home screen is optional and does two extra things: it opens without browser chrome, and it makes your saved counts harder for the browser to clear on its own.
- How do I add it to my home screen?
- On Android, open the browser menu and choose Install app or Add to Home screen. On iPhone, tap the Share button in Safari and choose Add to Home Screen. On a computer, Chrome and Edge show an install icon at the right of the address bar.
- Will my count survive if I lose signal mid-dhikr?
- Yes. Nothing about counting touches the network. The count is written to your browser on every tap, and losing signal changes nothing because there was never a request to lose.
- What happens if I clear my browser data?
- The saved count, the history and the offline copy all go. That's the same button that clears any site's data. Installing the app to your home screen makes the browser far less likely to clear it on its own, but a manual clear removes everything.
- Does it use my data when I count?
- No. After the first load there are no requests at all during counting: no analytics, no adverts, no fonts fetched from anywhere else. Your counts never leave the device.