ember-twiddle
ember-twiddle copied to clipboard
Service Worker integration
First, thanks for the project, it's really cool!
So, I was thinking that will be really nice to support Service Worker to improve a the user experience, initial rendering time... even maybe support an offline mode (not sure if makes sense).
Since you are using Broccoli, maybe this will be "easy" to integrate? https://github.com/jkleinsc/broccoli-serviceworker
Just a suggestion, great work! ^^
@zzarcon it would be cool to explore this in more detail .
@zzarcon could you create a poc? Ideally we would have 2 versions (one sw-based, one not) and switch based on browser support.
Service Worker is generally implemented as a progressive enhancement (feature detect, use a SW specific codepath) so could potentially be done without forking your codebase into two versions.
Experimented few service worker addons and It worked well in firefox. Great offline support as far as I tested. But I think, chrome has an open discussion on resource fetch wrt iframes with srcdoc.
https://github.com/w3c/ServiceWorker/issues/765