Closed annevk closed 5 years ago
That is my current understanding talking to service worker engineers. I'd love to hear otherwise from them, if you've been talking to a different set of folks.
Given how far along Origin Policy/Manifest is (not that far), it seems a little premature to declare that this will never happen.
Ok. I'd be happy to continue this discussion if you can point to some concrete statements contrary to what I've heard.
Even if service workers become an option for the first page load, are there additional reasons for not using them? It might be useful to describe those as well. One that comes to mind is that service workers may not be available in some situations (private browsing?).
BTW - this proposal might solve an inevitable problem when building microfrontends: loading assets from disparate servers in one browser runtime.
Will this be true forever? If Origin Policy/Manifest somehow works well [...]
Alternatively, with Early Hints we could do:
HTTP/1.1 103 Early Hints
Link: </sw.js>; rel=preload; as=script
And (?) if we kept rel=serviceworker
:
HTTP/1.1 103 Early Hints
Link: </sw.js>; rel=serviceworker; scope=/
Will this be true forever? If Origin Policy/Manifest somehow works well, I could imagine also preloading the service worker.