title: Execute managebean method from javascript onload event
body: <p>How can I make an ajax request that updates a <code>&lt;h:dataTable&gt;</code> from javascript? I am currently loading the initial data using <code>@Postconstruct</code> but that is significantly delaying the initial page load.</p>
  
  <p>I am thinking about using <code>onload</code> event of <code>&lt;body&gt;</code> HTML tag to fire the request and update the datatable.</p>