title: jquery $.when() difference between .then() and .done()
body: <p>I am trying to understand the difference between</p>
  
  <pre><code>$.when(...).then(...)
  
  $.when(...).done(...)
  </code></pre>
  
  <p>in jQuery. As far as I understood both of them executes when objects inside when are finished loading. But what is the difference. Examples will be really appreciated. </p>