title: How to create loading screen in my case
body: <p>My app is doing large amount of database queries and it holds the loading page blank white while doing it. I was wondering if there is anyway I can show the loading icon during the query.</p>
  
  <pre><code>&lt;?php
      //large queries
      //if all queries pass
      //do the redirect
      header('Location: index.html');
      //else show login screen.
  ?&gt;
  
  &lt;html&gt;
      //show login screen….
  &lt;/html&gt;
  </code></pre>
  
  <p>My question is how to show the loading icon when php query database</p>
  
  <p>Thanks.</p>