title: autoclick with delay between each click
body: <p>I have learnt to autoplay an animating slinder input using the following code. It autoplay with a given delay. But what I want to do is introduce a delay between every clicks. Not just after page loading also between every click I want a delay. This is becasue plot takes time to draw and display.</p>
  
  <p>Any help please? The below is the code I used:</p>
  
  <pre><code>server &lt;- function(input, output) {
  }
  
  ui &lt;- fluidPage(
          sliderInput("obs", "Number of observations:",
                      min = 10, max = 500, value = 100,
                      animate=T),
          tags$script("$(document).ready(function(){
                          setTimeout(function() {$('.slider-animate-button').click()},10);
                      });")
                  )
  
  shinyApp(ui = ui, server = server)
  </code></pre>