title: WooCommerce mini cart fragments - how load script when fragments are refreshed
body: <p>I use the mini wocommerce cart functionality on my website. When product is added to the cart the mini cart is refreshed automatically.</p>
  <p>Code:</p>
  <pre><code>add_filter( 'woocommerce_add_to_cart_fragments', function($fragments) {
      ob_start();
      ?&gt;
  
      &lt;div class=&quot;mini-cart&quot;&gt;
          &lt;?php woocommerce_mini_cart(); ?&gt;
      &lt;/div&gt;
      
      
      &lt;?php $fragments['div.mini-cart']  = ob_get_clean();
      return $fragments;
  
  } );
  </code></pre>
  <p>The cart has a scrollbar script implemented that works when there are too many items in the cart.</p>
  <p>The problem is that when the page is loaded or after adding a product to the cart, the mini cart is refreshed but the scroll script stops working. <strong>And I have to run code scrollbar again but I don't know how.</strong></p>
  <p>How can I run javascript code after each refreshing fragments?</p>