# How to localize dependencies when loading draco-compressed glb files?

**URL:** <https://forum.babylonjs.com/t/how-to-localize-dependencies-when-loading-draco-compressed-glb-files/1716>\
**Category:** Questions\
**Created:** [March 4, 2019, 11:53pm UTC](https://forum.babylonjs.com/t/how-to-localize-dependencies-when-loading-draco-compressed-glb-files/1716 "2019-03-04T23:53:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hcmetal](https://avatars.discourse-cdn.com/v4/letter/h/3be4f8/32.png) [@hcmetal](https://forum.babylonjs.com/u/hcmetal)\
**Post date:** [March 4, 2019, 11:53pm UTC](https://forum.babylonjs.com/t/how-to-localize-dependencies-when-loading-draco-compressed-glb-files/1716/1 "2019-03-04T23:53:07Z")

</div>

Hello, everyone!  
When I try to load a draco-compressed glb file in Babylon by doing something like:

assetsManager.addMeshTask(  
“mesh task”,  
“”,  
“/assets/”,  
`mysceneDraco.glb`  
);  
assetsManager.load();

I notice a couple of requests in Chrome dev-tools:  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/9/9fbde104ed95c43e852c23f90a293c823354dc16.png)  
Everything in the project are localized on my desktop machine except these two files and they are taking quite a while to fetch.

Is it possible to localize these files on my machine, or do I have to request these dependencies remotely?

Do I need to modify something in the Engine or Loader to make this work?

Hope someone can point me to the right direction.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [March 5, 2019, 1:43pm UTC](https://forum.babylonjs.com/t/how-to-localize-dependencies-when-loading-draco-compressed-glb-files/1716/2 "2019-03-05T13:43:25Z")

</div>

You can adapt the location by modifying the configuration:

BABYLON.DracoCompression.Configuration.decoder = {  
wasmUrl: “…/dist/preview%20release/draco\_wasm\_wrapper\_gltf.js”,  
wasmBinaryUrl: “…/dist/preview%20release/draco\_decoder\_gltf.wasm”,  
fallbackUrl: “…/dist/preview%20release/draco\_decoder\_gltf.js”  
};

Replace dist/preview with you local location (you can all the files here: [Babylon.js/dist/preview release at master · BabylonJS/Babylon.js · GitHub](https://github.com/BabylonJS/Babylon.js/tree/master/dist/preview%20release))

---

<div class="post-metadata">

**Author:** ![hcmetal](https://avatars.discourse-cdn.com/v4/letter/h/3be4f8/32.png) [@hcmetal](https://forum.babylonjs.com/u/hcmetal)\
**Post date:** [March 5, 2019, 11:25pm UTC](https://forum.babylonjs.com/t/how-to-localize-dependencies-when-loading-draco-compressed-glb-files/1716/3 "2019-03-05T23:25:33Z")

</div>

@sebavan  
Thanks! Solved:grin:
