title: show loading text on pjax request
body: <p>i have a script that uses pjax for loading pages. i want to show a loading "loading..." text while request is making, and show until the page fully loads. when ajax makes a call...</p>
  
  <pre><code>        pjax.connect({
          'container': 'pageContent',
          'beforeSend': function(){console.log("before send");},
          'complete': function(){console.log("done!");}
      });
  </code></pre>
  
  <p>in the firebug console it sends this messages. so i am thinking maybe, with the beforesend and complete function it is doable. i have poor knowledge on javascript, so maybe some one of you could show me how to do this.</p>