How to check if picture is loaded?
<p>How can I check if a picture is already loaded?</p>

<pre><code>image.src = ay.url_static + 'uploads/apps/' + thumbnail.uid + '.png';
image.onload = function(e)
{                   
    // [..]
};
</code></pre>

<p>I know how to trigger a callback upon image is loaded, but how do I check if picture is loaded at the moment?</p>
