Keycloak causing page to load twice
When our app gets loaded for the first time, our JS code triggers a keycloak authentication step. This is causing a full page redirect, which makes the load all resources effectively twice on first load. I think this behaviour has been there for a long time (present in our prod
build as well) but is even more noticeable now with the Service Worker gone.
I think keycloak has a a mechanism for preventing this, and I remember using it when I was building the keycloak connection in our old Encyclopedia page. We need to enable the silent check-SSO mechanism, as documented here.