#' A custom Mayo themed loading gif
#'
#' Add a loader that shows when an output element is calculating
#'
#' @param ui_element A UI element that should include a loader while the
#' corresponding output is being calculated
#'
#' @export
mayo_loader <- function(ui_element) {
shinycustomloader::withLoader(
ui_element = ui_element,
type = "image",
loader = "mayoshinythemes/images/loader.gif")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.