4 ms·
> if you users have unreliable internet connections then a JS app can use a service worker to cache the entire app to work offline, It looks like an over engi
by codedokode 10y ago
> if you users have unreliable internet connections then a JS app can use a service worker to cache the entire app to work offline,
It looks like an over engineered system, and you have to preload the content while on WiFi. And by the way do you know a reliable way to detect whether device is really online or there is a link but no packets are going through?
And every website is supposed to write its own code for service worker.
I think it would be easier to implement a feature in a browser where user can explicitly save some pages for offline reading. Or allow user to view pages from cache.
> Sometimes JS does actually make a site better.
For most sites it just adds unnesessary widgets (like spying share buttons) and advertisements. Especially on newspapers' sites - most of them work better without JS.