Get images width on .load() doesn't work on all browsers except firefox
<p>I post my question here because I haven't find an answer to my issue.
I load some image in JavaScript. Each of them are in its own div. And I want to get the width of the div.</p>

<pre><code>this.biggerElmts.find('img').each(function(){
var div = $('&lt;div/&gt;', {'class': this.divMinPic}).appendTo(divMinPics);
var img = $('&lt;img/&gt;', {
    'class': this.minPic,
    alt:'Miniature '+$(this).attr("alt"),
    src:this.urlPic($(this).attr("src"), this.minPicFolder)
})  // if image not found, we put de default file
    .error(function(){console.log("error loading image");$(this).attr("src", this.minPicFolder + this.defaultMinPic);})
    .load(function(){
        console.info($(this).width());
    })
    .appendTo(div);});
</code></pre>

<p>My problem is that it works fine on Firefox, but it doesn't on all other browser.
Firefox return me 185 and each other return me 0.</p>
