# Hoe te vuren bij elke footer- of paginalading?

**URL:** https://meta.discourse.org/t/how-to-fire-on-every-footer-load-or-page-load/195404
**Category:** Development
**Created:** [29 juni 2021 om 19:39 UTC](https://meta.discourse.org/t/how-to-fire-on-every-footer-load-or-page-load/195404 "2021-06-29T19:39:33Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [30 juni 2021 om 07:25 UTC](https://meta.discourse.org/t/how-to-fire-on-every-footer-load-or-page-load/195404/2 "2021-06-30T07:25:06Z")

</div>

There’s a little bit about this here.

[Javascripts targeting the footer doesn't work after page transitions - #4 by Johani](https://meta.discourse.org/t/javascripts-targeting-the-footer-doesnt-work-after-page-transitions/180012/4)

When you use this

```javascript
api.onAppEvent("inserted-custom-html", () => {
  // some code
});

```

You have to specify which custom HTML you want to target - different events fire based on that.

In this case, you want to target the footer. Can you try this and see if it works for you?

```javascript
api.onAppEvent("inserted-custom-html:footer", () => {
  // some code
});

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-fire-on-every-footer-load-or-page-load/195404)._
