title: How do I trigger something only when batch of getJSON instructions completes?
body: <p>Here's some of my code:</p>
  
  <pre><code>for (var i = 0; i &lt; recordList.length; i++) {
    var recordID = recordList[i];
    populateDataRow(i, recordID, columns) 
  };
  console.log("done");
  </code></pre>
  
  <p>Here <code>populateDataRow</code> is a function that uses <code>$.getJSON</code>
  The problem is (in Google Chrome at least), the <code>console.log</code> statement is triggered long before the <code>populateDataRow</code> cycles are completed</p>