title: JavaScript: Know when an image is fully loaded
body: <p>If I have a beacon:</p>
  
  <pre><code>&lt;img src="http://example.com/beacon" /&gt;
  </code></pre>
  
  <p>I want a method to be called once the beacon request finishes. Something like:</p>
  
  <pre><code>&lt;script&gt;
      $("img.beacon").load(function() {
          // do stuff knowing the beacon is done
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>Is it possible? Is it in jQuery?</p>