# JS callback when spinner is hidden?

**URL:** https://meta.discourse.org/t/js-callback-when-spinner-is-hidden/140667
**Category:** Development
**Created:** [February 5, 2020, 1:26am UTC](https://meta.discourse.org/t/js-callback-when-spinner-is-hidden/140667 "2020-02-05T01:26:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![abrambailey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abrambailey/32/119786_2.png) [@abrambailey](https://meta.discourse.org/u/abrambailey)
#### Post date: [February 5, 2020, 1:26am UTC](https://meta.discourse.org/t/js-callback-when-spinner-is-hidden/140667/1 "2020-02-05T01:26:47Z")

</div>

Kind of a weird issue here, but my community members are complaining that the footer on my forum jumps in and out of view when they click around on the site. I was thinking we could hide the footer whenever the spinner is present (content loading), but having trouble finding a way to trigger the show/hide. Thanks.

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [February 5, 2020, 2:07am UTC](https://meta.discourse.org/t/js-callback-when-spinner-is-hidden/140667/2 "2020-02-05T02:07:35Z")

</div>

Are you adding the footer via the above/below footer plugin outlet? If so, wrap your HTML in `{{#if showFooter}}`:

```xml
<script type="text/x-handlebars" data-template-name="/connectors/below-footer/custom-footer">
  {{#if showFooter}}
    your footer content here
  {{/if}}
</script>

```
