title: Unable to understand this Deferred code
body: <p>I came across this piece of code in this thread <a href="https://stackoverflow.com/questions/9711160/jquery-load-scripts-in-order/9711278#9711278">jQuery: load scripts in order</a></p>
  
  <pre><code>    var deferred = new $.Deferred(),
          pipe = deferred;
  
      $.each(scripts , function(i, val) {
           pipe = pipe.pipe(function() {
               return  $.getScript(val, function() {
                   console.log('loaded '+ val);
               });
           });
      });
  
  deferred.resolve();
  </code></pre>
  
  <p>Line by line, What does this code do?</p>