EQnoble
Well-known member
As the the title says I am curious if anyone has figured the best place to call a JS file so that it will be loaded before the body of every XenForo powered page?
I would rather ask before I confuse myself learning the wrong way. My first inclination was to add
to: page_container_js_head
right after
and before
leaving me with:
Can anyone tell me if this would work or if there is a different place/way to add it to the script?
I would rather ask before I confuse myself learning the wrong way. My first inclination was to add
Code:
<script type="text/javascript" src="js/jquery/jq.EQ.1.8.x.custom.js"></script>
right after
Code:
<script type="text/javascript" src="{$jQuerySource}"></script>
<script type="text/javascript" src="js/jquery/jquery.xenforo.rollup.js?_v={$xenOptions.jsVersion}"></script>
<script type="text/javascript" src="js/xenforo/xenforo.js?_v={$xenOptions.jsVersion}"></script>
Code:
<!--XenForo_Require:JS-->
leaving me with:
Code:
<script type="text/javascript" src="{$jQuerySource}"></script>
<script type="text/javascript" src="js/jquery/jquery.xenforo.rollup.js?_v={$xenOptions.jsVersion}"></script>
<script type="text/javascript" src="js/xenforo/xenforo.js?_v={$xenOptions.jsVersion}"></script>
<script type="text/javascript" src="js/jquery/jq.EQ.1.8.x.custom.js"></script>
<!--XenForo_Require:JS-->
Can anyone tell me if this would work or if there is a different place/way to add it to the script?