title: Is it possible to load PHP asynchronously with jQuery?
body: <p>I have a PHP page <code>view.php</code> which includes another PHP page <code>api.php</code>
  Now when a user requests some file like <code>view.php?id=xyz</code> a request is sent to <code>api.php?id=xyz</code> and some data is fetched and displayed in view.php</p>
  
  <p>As this happens the page load time increases severely as <code>api.php</code> request some data from remote server.</p>
  
  <p>Is it possible to load the whole view.php and then on user's click on a button request api.php?</p>
  
  <p>Here's what I want to do:</p>
  
  <p><strong>view.php</strong></p>
  
  <pre><code>&lt;?php
  // Load Some Content
  echo '&lt;div class="click"&gt;Click Here&lt;/div&gt;';
  // Don't Load The Following Div Unless User Clicks The Above Div
  echo '&lt;div class="load"&gt;';
  include 'api.php';
  echo '&lt;/div&gt;';
  // Load Some Content
  ?&gt;
  </code></pre>
  
  <p>I want to load the whole <code>view.php</code> without loading <code>api.php</code> but it should be included in <code>view.php</code> and once user clicks on <code>Click Here</code> div it should load <code>api.php</code></p>