# Interactions Script in Head Necessary?

**URL:** <https://forum.pinegrow.com/t/interactions-script-in-head-necessary/4996>\
**Category:** Pinegrow Interactions Add-on\
**Created:** [February 22, 2021, 12:35pm UTC](https://forum.pinegrow.com/t/interactions-script-in-head-necessary/4996 "2021-02-22T12:35:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AllMediaLab](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/allmedialab/32/2079_2.png) [@AllMediaLab](https://forum.pinegrow.com/u/AllMediaLab)\
**Post date:** [February 22, 2021, 12:35pm UTC](https://forum.pinegrow.com/t/interactions-script-in-head-necessary/4996/1 "2021-02-22T12:35:22Z")

</div>

Hi,

Created a scroll to top icon that slowly fades in when scrolling down the page and fades out when scroll to top with Pinegrow interactions. I get a block of JavaScript in my `<head>`. Is there a particular reason to keep it in the `<head>` or can I move it down to the bottom of the page or better add it to my external js?  
Or is it only there to be able to edit the animation?

Regards & Thanks,

David
