title: Show loading icon whenever the browser loading icon is active
body: <p>This might be a stretch, but I'm wondering whether or not it might be possible.</p>
  
  <p>I'm working on a website that uses PHP for its backend. The problem is, some of the PHP scripts I'm running are quite lengthy, and can translate into page load times that can last a few seconds.</p>
  
  <p>Ideally, I would be able to display a loading icon whenever the page is being loaded, but the circumstances differ depending on the page:</p>
  
  <ul>
  <li>In some cases, the page is being loaded for the first time,</li>
  <li>In others, the page is being reloaded after a same-page form submit,</li>
  <li>Sometimes the form is processed by an off-page script, which then redirects back to the page on which the form is situated (in these cases, since nothing is echoed in the external script the user isn't aware that the script is being processed elsewhere as the page content doesn't change).</li>
  </ul>
  
  <p>I understand a loading icon could be displayed in each of these cases depending on the trigger, but cannot find a general solution that would display an icon whenever the page is simply loading (regardless of the trigger).</p>
  
  <p>I've noticed that some browsers show a loading icon in the place of the favicon whenever the page is loading (or, at least, Google Chrome does). Is it be possible to know when the browser loading icon is active and display a page loading icon concurrently?</p>
  
  <p>If not, any alternate solution would be much appreciated.</p>