I have JavaScript on my front-page-template like below, I want to remove it from the front-page-template and enqueue it on the function.php of wordpress theme, is that possible?
<script type="text/javascript" src="//shop.spreadshirt.com/shopfiles/shopclient/shopclient.nocache.js"></script>
This should do the trick. Put this into your functions.php file.