dukecon / dukecon_html5

MIT License
2 stars 3 forks source link

App slow in Firefox when server is offline due to keycloak.json #23

Closed annam002 closed 8 years ago

annam002 commented 8 years ago

In Firefox, when the app is loaded while the server is offline, it takes really long to load. The reason is that the browser tries to retrieve the file keycloak.json from the server, which fails after a long time (in my case, 7.9s). This file should probably be cached. This does not happen in other browsers (tested in Chrome and Microsoft Edge)

ahus1 commented 8 years ago

Submitted pull request #31 to initialize keycloak only when online. Please check if this handles your offline cases successfully. If yes, please merge and maybe also close this ticket.

I wonder if the login button should be hidden when we are not online?

ahus1 commented 8 years ago

@annam002 - der PR ist gemerged. Kann das Ticket geschlossen werden?

annam002 commented 8 years ago

Yep, problem gone.