After two hours of pain-staking effort working with legacy frameworks, I found this funny gem:
Infinite loop in all browsers except Edge
You need to initialize Keycloak before AngularJS is initialized. Otherwise
Angular and Keycloak fights about rewriting the URL and you end up with the
infinite loop. It probably only works in Edge because it's slow ;)
I have never seen a browser solve a issue like this before!
Do share your funny moments in the comments.