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

Render empty shell for service worker navigation route (not root page) to prevent flash #52

Closed
dillonkearns opened this issue Jan 23, 2020 · 2 comments · Fixed by #55
Closed
Projects

Comments

@dillonkearns
Copy link
Owner

Right now when the service worker is registered and you open up an elm-pages site, it will load the root page's HTML and flash it briefly before the Elm code takes over. It should serve up the shell HTML (empty body) to use the shell service worker pattern: https://developers.google.com/web/fundamentals/architecture/app-shell.

@dillonkearns
Copy link
Owner Author

@dillonkearns
Copy link
Owner Author

For now, it's just not rendering a shell at all except for offline.

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