title: JQuery .load() issues
body: <pre><code>var img = $('.container img');
  
  $(img).load(function () { 
     // do something
  });
  </code></pre>
  
  <p>I am having an issue with the <code>.load()</code> function. This is a snippet of my code above which runs a function when the variable <code>img</code> is present. But on occasions, this function does not run. Is this something to do wit the variable <code>img</code> not being stored in time? If you think this is the case, does anyone have an idea of how to delay the <code>.load()</code> call to make sure the function occurs.</p>
  
  <p>Thanks</p>