title: Datatables - on page load, table layout does not load instantly
body: <p>There's a problem with datatables.js - when the page loads, the css with pagination is slightly delayed, so the whole data shows very quickly initally before it shows the css with pagination.</p>
  
  <p>The same problem shows on this fiddle, when reloading the page you can see that it blinks, showing first the table without pagination, then with pagination (but the effect is very fast on this fiddle especially on chrome; on firefox it's slower and more noticable (for me), but on my application it is very noticable and bad looking.<br>
  <a href="https://jsfiddle.net/galivan/4atodv3w/" rel="noreferrer">Datatables example</a></p>
  
  <p>I have tried to order styles and scripts, also trying to put things in the footer (currently it's all in the header) but it doesn't seem to matter. I also found another fiddle with datatables which shows the same thing on page load: ( <a href="http://jsfiddle.net/fauzi/UvjnT/" rel="noreferrer">some other datatables example</a> ). Is it a bug?</p>
  
  <p>Here are scripts and styles involved:</p>
  
  <pre><code>&lt;link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"  type="text/css" rel="stylesheet"&gt;
  
  &lt;link rel="stylesheet" href="https://cdn.datatables.net/1.10.15/css/jquery.dataTables.min.css"/&gt;
  
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" type="text/javascript"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.15/js/dataTables.bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="https://cdn.datatables.net/1.10.15/js/jquery.dataTables.min.js"&gt;&lt;/script&gt;
  &lt;script src="{{ base_url }}application/assets/js/datatablejs.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>