title: Waiting on fetch() in Kotlin JS?
body: <p>I'm writing a WebGL app in Kotlin JS, and as such I need to fetch resource such as .obj files and shaders. I want to do this through HTTP requests, but I've run into issues.</p>
  <p>I'm currently trying to do this via JS's <code>fetch()</code> API. The problem is that this is obviously asynchronous, and fetching the resources <em>needs</em> to be done before the render loop can start (i.e. fetching the resources is initialisation).</p>
  <p>I'm really struggling to get this to work synchronously. That is, my program should not continue onto loading buffers and the main draw loop before it has fetched the shaders and .obj files. How can I get this to work in Kotlin JS? Is <code>fetch()</code> not the right way to do this?</p>