# Bank Loaded Callback in HTML5

**URL:** https://qa.fmod.com/t/bank-loaded-callback-in-html5/21034
**Category:** FMOD Engine
**Tags:** html5
**Created:** [December 26, 2023, 3:01pm UTC](https://qa.fmod.com/t/bank-loaded-callback-in-html5/21034 "2023-12-26T15:01:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![skymen](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/skymen/32/4727_2.png) [@skymen](https://qa.fmod.com/u/skymen)
#### Post date: [December 26, 2023, 3:01pm UTC](https://qa.fmod.com/t/bank-loaded-callback-in-html5/21034/1 "2023-12-26T15:01:28Z")

</div>

Hi,

In the Manual you say the following

> Bank loading can be controlled with the [FMOD\_STUDIO\_LOAD\_BANK\_FLAGS](https://www.fmod.com/docs/2.02/api/studio-api-system.html#fmod_studio_load_bank_flags). When loading banks with [FMOD\_STUDIO\_LOAD\_BANK\_NORMAL](https://www.fmod.com/docs/2.02/api/studio-api-system.html#fmod_studio_load_bank_normal), the function will not return until the bank has completed loading. When using the [FMOD\_STUDIO\_LOAD\_BANK\_NONBLOCKING](https://www.fmod.com/docs/2.02/api/studio-api-system.html#fmod_studio_load_bank_nonblocking) flag, the load bank function will return before the bank has completed loading.

Is that still true for JS? I assume it does not, because unless I am mistaken, loading URLs in JS is always asynchronous. In this case, how can I implement an async loading that returns a promise with the properly loaded bank at the end?

---

<div class="post-metadata">

### Author: ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)
#### Post date: [January 1, 2024, 10:31pm UTC](https://qa.fmod.com/t/bank-loaded-callback-in-html5/21034/2 "2024-01-01T22:31:42Z")

</div>

Hi,

You can still use the non-blocking method it will just require the `system.update` call so that it can continue to load correctly. You can read more about it in our documentation here: [FMOD Engine | Platform Details - HTML5](https://fmod.com/docs/2.02/api/platforms-html5.html#non-blocking-loading).

Hope this helps
