title: Jquery function return order issue
body: <p>In JavaScript, I am calling same function 3rd times but return order changes every time. You can see my code in the below. Sometimes page1.html is first loaded sometime page2.html</p>
  
  <p>How can I solve this issue?</p>
  
  <p>Thanks in advance</p>
  
  <pre><code>$(document).ready(function () {
      $("#button").click(function () {
          addHtml('page1');
          addHtml('page2');
          addHtml('page3');
      });
  });
  
  function addHtml(url) {
      if ($("#" + url).length == 0) {
          $.get(url+'.html', function (result) {
              $('.divtest').append(result);
          });
      }
  };
  </code></pre>