# How to deal with async loader?

**URL:** <https://discourse.threejs.org/t/how-to-deal-with-async-loader/15861>\
**Category:** Questions\
**Tags:** javascript, loaders\
**Created:** [June 3, 2020, 4:28pm UTC](https://discourse.threejs.org/t/how-to-deal-with-async-loader/15861 "2020-06-03T16:28:15Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![8Observer8](https://avatars.discourse-cdn.com/v4/letter/8/bbe5ce/32.png) [@8Observer8](https://discourse.threejs.org/u/8Observer8)\
**Post date:** [May 23, 2022, 2:15pm UTC](https://discourse.threejs.org/t/how-to-deal-with-async-loader/15861/7 "2022-05-23T14:15:06Z")

</div>

I spent some time to find how to use this, maybe it will be useful for someone:

```javascript
var gltfLoader = new THREE.GLTFLoader();
var result = await gltfLoader.loadAsync("car/scene.gltf");
...

```

> [@loadAsync function not working or using wrong](https://discourse.threejs.org/t/loadasync-function-not-working-or-using-wrong/28355/2):
>
> The THREE.Loader class is never used directly, it’s a base class for other loaders. Instead: var gltfLoader = new THREE.GLTFLoader(); var result = await loader.loadAsync("car/scene.gltf"); ...

---

_[View the full topic](https://discourse.threejs.org/t/how-to-deal-with-async-loader/15861)._
