rstudio / shiny-server

Host Shiny applications over the web.
https://rstudio.com/shiny/server
Other
716 stars 289 forks source link

[Low pri] Reconnecting CSS causes really awkward flickering #447

Open daattali opened 4 years ago

daattali commented 4 years ago

When an app loses connection, a few attempts to reconnect are made by the server.

This css https://github.com/rstudio/shiny-server/blob/4b588a12f844713729991d1274764d854d90a18d/assets/shiny-server.css#L1-L4 removed the background of the body tag when a reconnection is attmpted. The result is that if there is already a background on the body, for a few seconds the backgroud is removed which looks glitchy.

Here's an example (the time is not to scale, converting video to GIF messed up the timing)

2020-06-09-02-30-36

The only way around this seems to have to define a shiny app's css with

body {
  background: #fafafa !important;
}

And it seems a bit overkill to have to use important because of this. Is that background clearing really required?