jquery loading images dynamically
<p>I have an img element and each time I change its src dynamically I want to get new image's width (after it's completely loaded)</p>

<p>.load() seems not trigger if image is in cache already(?), but I don't want to load it again in this case, as:</p>

<pre><code>   'image.jpg?' + new Date().getTime();
</code></pre>

<p>would(?)</p>

<p>What is the best way to do it?</p>

<p>Edit:</p>

<pre><code>$('#test img:first').load(function() {
    console.log($(this).width());
});
</code></pre>

<p>seems it doesn't trigger if images in cache already</p>
