Thursday, March 10, 2016

Service Worker Framework

I have started working on my service worker framework or module.  I don't know if it will ever be useful to anyone but me, but I am learning a lot.

I created a base service worker that can be included in the one on my site.  I played around with passing an options object to the service worker using postMessage.  It is pretty interesting playing around with this stuff at this stage of the development.  There seem to be a lot of odd things that can happen.  You see a lot of messages and errors in the console.  I haven't gotten it all sorted out yet.

I am using Chrome for testing this.  You can easily see if you service worker has been registered in the Resources area of the dev tools.  Then you can delete it so it can be re-registered.  I'll try to keep posting more as I continue to work on this.

No comments:

Post a Comment

Using Brave

For a few weeks now I have been using the Brave browser.  It is based on Chromium , so switching from Chrome was a quick adjustment since ...