# Problem running a Babylonjs web app using GitHub.io web sites

**URL:** <https://forum.babylonjs.com/t/problem-running-a-babylonjs-web-app-using-github-io-web-sites/54381>\
**Category:** Questions\
**Created:** [October 26, 2024, 9:57pm UTC](https://forum.babylonjs.com/t/problem-running-a-babylonjs-web-app-using-github-io-web-sites/54381 "2024-10-26T21:57:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sigma7zero](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sigma7zero/32/43411_2.png) [@Sigma7zero](https://forum.babylonjs.com/u/Sigma7zero)\
**Post date:** [October 26, 2024, 9:57pm UTC](https://forum.babylonjs.com/t/problem-running-a-babylonjs-web-app-using-github-io-web-sites/54381/1 "2024-10-26T21:57:59Z")

</div>

Hi,  
I am trying to build a web-based Level Editor using Babylonjs - running on a [GitHub.io](http://GitHub.io) server.

 ![map_star](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/c/6/c6e96504ace843da70befbfd011d4d8a57b8a903.jpeg)

I need to load the GUI using:  
let loadedGUI = await advancedTexture.parseFromSnippetAsync(“BLAHBLAHBLAH#999”);  
but, adding this async function crashes the web app.

It’s like Github cannot process async functions.

Is there a work around, or another way to load my GUI - which was created using the GUI editor.

Regards,

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [October 26, 2024, 11:09pm UTC](https://forum.babylonjs.com/t/problem-running-a-babylonjs-web-app-using-github-io-web-sites/54381/2 "2024-10-26T23:09:48Z")

</div>

Does your project work locally?  
Does it work on any other server?  
Do you use await inside the async?

> [@Sigma7zero](#):
>
> It’s like Github cannot process async functions.

Github doesn’t process them, it happens inside your browser.  
Probably there is some error in your code?  
Do you have any console messages?  
Is there a way to have a look at your app or we need to make guesses? 🙂

---

<div class="post-metadata">

**Author:** ![Sigma7zero](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sigma7zero/32/43411_2.png) [@Sigma7zero](https://forum.babylonjs.com/u/Sigma7zero)\
**Post date:** [October 27, 2024, 8:23am UTC](https://forum.babylonjs.com/t/problem-running-a-babylonjs-web-app-using-github-io-web-sites/54381/3 "2024-10-27T08:23:22Z")

</div>

_Does your project work locally?_  
Yes! I am currently using the Playground and the Gui Editor

 ![playground_screen](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/b/9/b99441eeaeb73e47214f851fa5213a0490d0e7c5.png)

_Do you use await inside the async?_

Yes! The function is called within:  
const createscene = async function () {…}

_Does it work on any other server?_  
I haven’t tried it on a local server

The scene only loads when I comment out the GUI code:  
[sigma7zero.github.io/MapStar.github.io/](https://sigma7zero.github.io/MapStar.github.io/)

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [October 27, 2024, 9:48am UTC](https://forum.babylonjs.com/t/problem-running-a-babylonjs-web-app-using-github-io-web-sites/54381/4 "2024-10-27T09:48:55Z")

</div>

What did I fix:

1. unreferenced babylonjs.gui.js
2. top level function not async
3. incorrect script type - your code
4. you didn’t await the createScene() function

Page here with full code in html:  
[https://playgrounds.babylonjs.xyz/sigma7zero.html](https://playgrounds.babylonjs.xyz/sigma7zero.html)

---

<div class="post-metadata">

**Author:** ![Sigma7zero](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sigma7zero/32/43411_2.png) [@Sigma7zero](https://forum.babylonjs.com/u/Sigma7zero)\
**Post date:** [October 27, 2024, 10:22am UTC](https://forum.babylonjs.com/t/problem-running-a-babylonjs-web-app-using-github-io-web-sites/54381/5 "2024-10-27T10:22:18Z")

</div>

Thanks.

---

<div class="post-metadata">

**Author:** ![Sigma7zero](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sigma7zero/32/43411_2.png) [@Sigma7zero](https://forum.babylonjs.com/u/Sigma7zero)\
**Post date:** [October 27, 2024, 1:05pm UTC](https://forum.babylonjs.com/t/problem-running-a-babylonjs-web-app-using-github-io-web-sites/54381/6 "2024-10-27T13:05:48Z")

</div>

It’s still not working on [https://sigma7zero.github.io/MapStar.github.io/](https://sigma7zero.github.io/MapStar.github.io/)

It throws up this error in the console:

 ![error](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/9/d/9d44968da0ce4b1b8d83dbaf1bee4154a9c13e81.png)

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [October 27, 2024, 2:04pm UTC](https://forum.babylonjs.com/t/problem-running-a-babylonjs-web-app-using-github-io-web-sites/54381/7 "2024-10-27T14:04:31Z")

</div>

> [@roland](#):
>
> you didn’t await the createScene() function

And you don’t await it again:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/f/f/ff34cda6b8cb50f6238711d44b08abf90a15bc2e.jpeg)

Why don’t you get the code from [MetaVerse MapStar](https://playgrounds.babylonjs.xyz/sigma7zero.html) ?
