ember-twiddle icon indicating copy to clipboard operation
ember-twiddle copied to clipboard

Service Worker integration

Open zzarcon opened this issue 8 years ago • 4 comments

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 avatar Oct 28 '15 16:10 zzarcon

@zzarcon it would be cool to explore this in more detail .

stefanpenner avatar Oct 28 '15 16:10 stefanpenner

@zzarcon could you create a poc? Ideally we would have 2 versions (one sw-based, one not) and switch based on browser support.

joostdevries avatar Oct 29 '15 13:10 joostdevries

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.

addyosmani avatar Mar 20 '16 12:03 addyosmani

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

gokatz avatar Jun 22 '18 20:06 gokatz