# How can I tell myFunction to wait untill createScene charge finish

**URL:** <https://forum.babylonjs.com/t/how-can-i-tell-myfunction-to-wait-untill-createscene-charge-finish/4398>\
**Category:** Questions\
**Created:** [July 10, 2019, 11:09am UTC](https://forum.babylonjs.com/t/how-can-i-tell-myfunction-to-wait-untill-createscene-charge-finish/4398 "2019-07-10T11:09:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anes](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@Anes](https://forum.babylonjs.com/u/Anes)\
**Post date:** [July 10, 2019, 11:09am UTC](https://forum.babylonjs.com/t/how-can-i-tell-myfunction-to-wait-untill-createscene-charge-finish/4398/1 "2019-07-10T11:09:00Z")

</div>

Hello guys,

is there a function that wait until createScene finish then it works cuz I have a function with parameters are uploaded from createScene and I don’t want to call it inside createScene (not registerAfterRender because I want to call it one time)

Thank you

Anes

---

<div class="post-metadata">

**Author:** ![Wingnut](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/wingnut/32/53_2.png) [@Wingnut](https://forum.babylonjs.com/u/Wingnut)\
**Post date:** [July 10, 2019, 11:44am UTC](https://forum.babylonjs.com/t/how-can-i-tell-myfunction-to-wait-untill-createscene-charge-finish/4398/2 "2019-07-10T11:44:03Z")

</div>

Hi Anes… [https://doc.babylonjs.com/api/classes/babylon.scene#onreadyobservable](https://doc.babylonjs.com/api/classes/babylon.scene#onreadyobservable)

In “[the big list of scene observables](https://doc.babylonjs.com/how_to/observables#scene-observables)”, it is hiding in the first sentence BELOW the list. 🙂

(That list is actually all the scene observations that happen EACH frame, and in THAT order/sequence.)

There is also _scene.executeWhenReady_ option, but I think the observer method is more cool/modern.
