# Javascript inserted into Footer from Discourse UI not working

**URL:** <https://meta.discourse.org/t/javascript-inserted-into-footer-from-discourse-ui-not-working/40531>\
**Category:** Support\
**Created:** [March 3, 2016, 7:25pm UTC](https://meta.discourse.org/t/javascript-inserted-into-footer-from-discourse-ui-not-working/40531 "2016-03-03T19:25:25Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [September 21, 2016, 5:41am UTC](https://meta.discourse.org/t/javascript-inserted-into-footer-from-discourse-ui-not-working/40531/9 "2016-09-21T05:41:19Z")

</div>

> [@kourou](#):
>
> In “Footer” this will not popup the dialog, whereas in “Header” this will work.

Footer is not designed to allow for script tags, it is just for visual changes.

The lifecycle of our application is very different to what a traditional webpage is. There are hooks in Ember you need to use if you need code to run

- On initialization
- On page transition
- When a route is entered
- When a component is rendered

and so on.

The to make XYZ work put the following “snippet” in your HTML footer concept make no sense for a single page application.

---

_[View the full topic](https://meta.discourse.org/t/javascript-inserted-into-footer-from-discourse-ui-not-working/40531)._
