title: script tag XHR event listener for monitoring cart activities does not work anymore
body: <p>I have an app which will add this script tag into the store.</p>
  <p>In the past I use script tag with this script to monitor customer's cart activities.
  When the script tag detect a XHR, it will fire some data to my backend.</p>
  <pre><code>var oldXHR = window.XMLHttpRequest;
  
  function newXHR() {
    console.log('XHR detected!')
    var realXHR = new oldXHR();
    realXHR.addEventListener(
      &quot;load&quot;,
      function () {
        if (realXHR.readyState == 4 &amp;&amp; realXHR.status == 200) {
          if (realXHR._url === &quot;/cart.js&quot; || realXHR._url === &quot;/cart/change.js&quot;) {
             // do something....
          }
        }
      },
      false
    );
    return realXHR;
  }
  window.XMLHttpRequest = newXHR;
  </code></pre>
  <p>But today I don't know why the  action of changing the cart and adding item into cart cannot trigger the XHR listener anymore.
  However, this script tag is still working in my old store. But if I install it to a new store, it does not trigger anything. I check the script tag is normally running in that new store, but the problem is the XHR listener did not trigger.</p>
  <p>Anyone have some ideas?</p>