title: Get if browser is busy
body: <p>I'm trying to find a way to get if the browser is currently busy from JavaScript. I'm looking at making a Firefox extension to inject a Boolean value or something if the current page is loading something (either through ajax or just normal page loads), or the same with a Greasemonkey script, or through some JavaScript API (this would be the best solution, but from what I can see, nothing of the sort exists). </p>
  
  <p>I was wondering what the best way to do this would be. I've been looking for Firefox Addon / Greasemonkey tutorials for making something like this and can't find anything. Does anyone have any tips or resources they could point me towards or better solutions for solving this?</p>
  
  <p>Thanks</p>
  
  <p>Edit: and by busy, I mostly just need to know if the browser is sending or receiving data from a server.</p>