Live data from Hacker News

Writing a Service Worker

hacklabo.com

1–10 of 60 posts

Re: Writing a Service Worker

#4
post #2

I imagine this comes with massive overheads in regards to data and ram usage, both of which are precious commodities on mobile platforms.

At least when following this example the site should work just fine when JS is disabled, which was the main issue I had when I tried following google's (?) tutorial on how to use service workers to make webapps work offline. That one revamped the whole site into a JS app powered by service workers, with a blank white page remaining without JS. Not the case here.

I don't think this approach here should cost much performance. It is just a thread checking a cache (that will be on disk) on page load.

Re: Writing a Service Worker

#7

Could this be used to optionally reduce bandwidth use? For instance, could someone use this before going into Airplane Mode, even though they are in the middle of a city, but do not want to use wireless data?

yes, a site could allow the user to preload data into the cache and prefer that later.
Post reply on HN