How to download image using javascript in Unity WebGL
<p>I'm trying to download image from a server to my Unity WebGL app. I used WWW and it works but it has problems where it freezes the whole WebGL app in the browser while its downloading. This simple code works, but it stops the app while its download the image.</p>

<pre><code>WWW loader = new WWW(url);
yield return loader;
</code></pre>

<p>I already exhausted all possibilities of using Unity to download the image, since it either freeze or dont work,</p>

<p>Instead, I want to see if its possible to for unity to tell the browser to download the image for me using javascript, then have it pass that image back to my unity c# code somehow.</p>

<p>Anybody know how to do that using external java script? I know it can do it because I have code that can send a picture from Unity to the server using external java script and it works without freezing the app, so it must can work the other way also.</p>

<p>Thanks!</p>