Re:Show HN: Strich – Barcode scanning for web apps
by alex_suzuki on Thursday August 17, 2023 @12:26PM
(#37164142)
Good points.
If the app is coming out of the cache, IIRC it does not count as a page load and typically the SDK is initialized at page load (where the license check happens). Scanning a barcode doesn't require an HTTP request, just the initialization of library.
But I agree that requiring internet access at some point is a turn-off for lots of people.
If a website still works when wifi is disabled, it's because the entirety of the application has been downloaded and cached by the browser; no further Network requests are needed—or invoked by something the user might want to do, like scanning another barcode.
If scanning a barcode requires a GET, POST, PUT etc. somewhere, it won't work offline.
If scanning a barcode only requires reusing a cached script/function/asset, it should work offline.