title: How can i excute a function after all ajax requests complete?
body: <p>I wanna execute a <strong>JS Function</strong> after all <strong>Ajax</strong> request in the page complete. 
  But in the general way. Because i don't know how many Ajax Requests in the page. and i wanna make the code <strong><em>declarative</em></strong> to run even it the developer create an Ajax request in future.</p>
  
  <p>let's take this code Example:</p>
  
  <pre><code>function ex(){
   alert("all Ajax requests have been sent");
  }
  </code></pre>