# What is the discourse api plugin method which triggers once the discourse header section loaded

**URL:** https://meta.discourse.org/t/what-is-the-discourse-api-plugin-method-which-triggers-once-the-discourse-header-section-loaded/182980
**Category:** Support
**Created:** [March 12, 2021, 8:30am UTC](https://meta.discourse.org/t/what-is-the-discourse-api-plugin-method-which-triggers-once-the-discourse-header-section-loaded/182980 "2021-03-12T08:30:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![narayanan](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@narayanan](https://meta.discourse.org/u/narayanan)
#### Post date: [March 12, 2021, 8:30am UTC](https://meta.discourse.org/t/what-is-the-discourse-api-plugin-method-which-triggers-once-the-discourse-header-section-loaded/182980/1 "2021-03-12T08:30:33Z")

</div>

Hey,

Actually, I need to do some operations once the discourse headers is loaded. The problem is to find out the discourse api events which should trigger once the discourse headers is loaded.

I have tried with below api method which is triggered before the header html’s are loaded.

> api.onAppEvent(“inserted-custom-html:footer”, () =\> { });

**So, which event will be trigger once the header html’s are loaded ?**

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [March 12, 2021, 11:24am UTC](https://meta.discourse.org/t/what-is-the-discourse-api-plugin-method-which-triggers-once-the-discourse-header-section-loaded/182980/2 "2021-03-12T11:24:25Z")

</div>

It might be helpful to back up and describe the problem you’re trying to solve with those methods.
