title: Detect if browser is performing a redirect
body: <p>On my project I have a warning message that apears on every case of error.<br />
  It is not anything fancy, just some jquery transitions when a event is fired.<br />
  I have some pages that on load fetch some data with get requests.<br />
  When I do a redirect or a reload the connection with the server fails and triggers the warning to appear.<br />
  I believe that this behavior will confuse the users.<br /></p>
  
  <p>Is there a way to detect when a browser is performing a redirect or a reload in order to disable the warning?</p>
  
  <p><strong>Edit 1</strong><br />
  I get an error because the browser is dropping the connection with server due to the redirect/reload.<br />
  So it is logical to get an error in my console.<br />
  The illogical thing is to throwgh a warning for something that the browser had to do in order to complete my request.
  I don't need an event, I need a way to check the browsers condition.</p>
  
  <p><strong>Edit 2</strong><br />
  I should have said this earlier, but the warning is shown before the redirect or reload is complete.</p>