Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"However, service workers are not available on first load" #70

Closed
annevk opened this issue Nov 6, 2018 · 5 comments
Closed

"However, service workers are not available on first load" #70

annevk opened this issue Nov 6, 2018 · 5 comments

Comments

@annevk
Copy link

annevk commented Nov 6, 2018

Will this be true forever? If Origin Policy/Manifest somehow works well, I could imagine also preloading the service worker.

@domenic
Copy link
Collaborator

domenic commented Nov 6, 2018

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.

@annevk
Copy link
Author

annevk commented Nov 6, 2018

Given how far along Origin Policy/Manifest is (not that far), it seems a little premature to declare that this will never happen.

@domenic
Copy link
Collaborator

domenic commented Nov 6, 2018

Ok. I'd be happy to continue this discussion if you can point to some concrete statements contrary to what I've heard.

@johntron
Copy link

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.

@Malvoz
Copy link

Malvoz commented May 2, 2019

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=/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants