title: How can I get the dimensions of an img loaded with ajax?
body: <p>I'm loading an image using jquery:</p>
  
  <pre><code>var myImg = new Image();
  
  $(myImg).load(function(){
      console.log("image dimensions:"); // what should I put here ?
  }).attr("src", "/path/toImg/");
  </code></pre>
  
  <p>When the img is loaded, is there a way to get it's width and height ?
  Notice that the problem is that I want to have this info BEFORE the img is appended to the body.</p>