# Load/Unload a bank during runtime in HTML5

**URL:** <https://qa.fmod.com/t/load-unload-a-bank-during-runtime-in-html5/20580>\
**Category:** FMOD Studio\
**Tags:** html5\
**Created:** [August 22, 2023, 10:57am UTC](https://qa.fmod.com/t/load-unload-a-bank-during-runtime-in-html5/20580 "2023-08-22T10:57:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TRanker](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@TRanker](https://qa.fmod.com/u/TRanker)\
**Post date:** [August 22, 2023, 10:57am UTC](https://qa.fmod.com/t/load-unload-a-bank-during-runtime-in-html5/20580/1 "2023-08-22T10:57:47Z")

</div>

In the browser:

I was wondering if there is a way to load/unload a bank during runtime, via a buttonclick, and then trigger sound inside the bank and unload it later. Am I completely on the wrong track here? I can’t find an example. It seems they all load the banks in prerun.

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [August 23, 2023, 3:00am UTC](https://qa.fmod.com/t/load-unload-a-bank-during-runtime-in-html5/20580/2 "2023-08-23T03:00:08Z")

</div>

Yes, it’s entirely possible to do that. You can use the [`Studio::System` bank load functions](https://www.fmod.com/docs/2.02/api/studio-api-system.html) such as [`Studio::System::loadBankFile`](https://www.fmod.com/docs/2.02/api/studio-api-system.html#studio_system_loadbankfile) to load a given bank, and then unload it with [`Studio::Bank::unload`](https://www.fmod.com/docs/2.02/api/studio-api-bank.html#studio_bank_unload). For an example of how to do this, I would recommend taking a look at the `load_banks` example included with our HTML5 Engine installer.
