You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 20, 2024. It is now read-only.
Which parts of preboot are affected by this issue?
client side (Application Shell)
What is the current behavior?
When building an app shell, the preboot script present in that pre-rendered document causes undesired behavior:
While the client app bootstraps (no PWA), preboot doesn't capture events (or, if it does, it doesn't replay them after the client app bootstraps); The first obvious thing that can be noticed is that pressing of a button before the client app bootstraps doesn't trigger the preboot overlay.
Sometimes (while emulating a Slow 3G connection), Preboot doesn't make the switch to the client app (easily noticeable in the example repo, since the header brand and menu button don't get some styles applied in the server rendered view - material 5.2.x bug)
Even after the client app bootstraps, the pressing of a button (like the menu button in the example repo) triggers the preboot overlay;
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem by creating a github repo.
Preboot should still work when using an App Shell (no PWA).
Not sure what should happen in case of a PWA, when the app shell is served by the Service Worker. How would Preboot know which scenario is the current one?
What is the motivation / use case for changing the behavior?
SSR and PWA are not mutually exclusive. We still need SSR for SEO and first load of the app. The Service Worker needs a document to cache (ideally, a document with the main layout present - like header/navigation/footer).
Initially I thought that the preboot script should not even be present in the prerendered app shell document, but when thinking about it: one might use an App Shell and not use SSR. Or, in case of a PWA - you still want both.
I'm submitting a ...
Which parts of preboot are affected by this issue?
What is the current behavior?
When building an app shell, the preboot script present in that pre-rendered document causes undesired behavior:
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem by creating a github repo.
https://github.com/MrCroft/ng-app-shell-preboot
Just
npm install,npm run build:ssr&npm run serve:ssrWhat is the expected behavior?
What is the motivation / use case for changing the behavior?
SSR and PWA are not mutually exclusive. We still need SSR for SEO and first load of the app. The Service Worker needs a document to cache (ideally, a document with the main layout present - like header/navigation/footer).
Initially I thought that the preboot script should not even be present in the prerendered app shell document, but when thinking about it: one might use an App Shell and not use SSR. Or, in case of a PWA - you still want both.
Please tell us about your environment: