e" id="cb370"><pre class="sourceCode js"><code class="sourceCode javascript"><span id="cb370-1"><a href="events-1.html#cb370-1"></a><span class="co">// auto.js</span></span>
<span id="cb370-2"><a href="events-1.html#cb370-2"></a><span class="kw">var</span> progress<span class="op">;</span></span></code></pre></div>
<p>We can then observe for the <code>shiny:busy</code> and <code>shiny:idle</code> events to show and hide the progress bar automatically.</p>
<div class="sourceCode" id="cb371"><pre class="sourc