title: JS Promise.all with document ready
body: <p>I need to get a json file for some data and also wait for the dom to load (and use the json to populate a table). Is there a way to do both of these simultaneously?
  Here's what I have now. Obviously, it is slow because it waits for the dom and then the get.</p>
  <pre><code>$(document).ready(() =&gt; {
      $.get(..., callback)
  })
  </code></pre>