What is the best way to detect an image download completion - onload or addEventListener()?
<p>For detecting when an image has completed downloading which method should I use?</p>

<pre><code>image.onload = function () {}
</code></pre>

<p>or </p>

<pre><code>image.addEventListener("load", function () {} );
</code></pre>
