title: How to run a function when any XMLHttpRequest is complete?
body: <p>I'm working on a project that has several scripts that I cannot change. These scripts update the page via AJAX. When the update is complete I need to run some code. </p>
  
  <p>Is there any event that fires when any XMLHttpRequest is complete? (or any XMLHttpRequest state change?).</p>
  
  <p>Unfortunately I cannot access the specific XMLHttpRequest object used to make the request. </p>
  
  <p>Thanks, </p>