How to display a busy indicator in a shiny app?

后端 未结 5 1168
后悔当初
后悔当初 2020-12-13 21:30

Note : I have read almost all the discussions on this object in shiny googlegroups and here in SO.

I need an indicator that shows the shiny server is busy. I have tr

5条回答
  •  再見小時候
    2020-12-13 22:08

    I found using fadeIn() as opposed to show() helps mitigate this blinking occurence:

    setInterval(function(){
                         if ($('html').attr('class')=='shiny-busy') {
                              setTimeoutConst = setTimeout(function(){
                                    $('#loading-page').fadeIn(500);
                                 }, delay);
                          } else {
                              clearTimeout(setTimeoutConst );
                              $('#loading-page').hide();
                          }
                  },10)
    

提交回复
热议问题