diff --git a/NEWS.md b/NEWS.md index 2d5cc93f8..f6dca1d9a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,11 +2,13 @@ ## New busy indication feature -Shiny now includes busy indication by default, which more specifically means: - 1. Calculating/recalculating outputs now have a spinner overlay. - 2. When no outputs are calculating, but Shiny is busy calculating something (e.g., a download, side-effect, etc), a page-level pulsing banner is shown. +Add the new `useBusyIndicators()` function to any UI definition to: + 1. Add a spinner overlay on calculating/recalculating outputs. + 2. Show a page-level pulsing banner when Shiny is busy calculating something (e.g., a download, side-effect, etc), but no calculating/recalculating outputs are visible. -If either 1 or 2 leads to undesirable behavior in your app, you can disable them entirely with `useBusyIndicators(spinners = FALSE, pulse = FALSE)`. In addition, various properties of the spinners and pulse can be customized with `busyIndicatorOptions()`. For more details, see `?busyIndicatorOptions`. (#4040, #4104) +In a future version of Shiny, busy indication will be enabled by default, so we encourage you to try it out now, provide feedback, and report any issues. + +In addition, various properties of the spinners and pulse can be customized with `busyIndicatorOptions()`. For more details, see `?busyIndicatorOptions`. (#4040, #4104) ## New features and improvements diff --git a/R/busy-indicators.R b/R/busy-indicators.R index 61fe330af..026c1e541 100644 --- a/R/busy-indicators.R +++ b/R/busy-indicators.R @@ -288,6 +288,7 @@ busyIndicatorDependency <- function() { src = "www/shared/busy-indicators", package = "shiny", stylesheet = "busy-indicators.css", - head = as.character(useBusyIndicators()) + # TODO-future: In next release make spinners and pulse opt-out + # head = as.character(useBusyIndicators()) ) }