Move jQuery before {{ghost_foot}}
- Including jQuery before `{{ghost_foot}}` means jQuery can be used inside ghost_foot code injection - It should also improve backwards compat, as without this jQuery code included via ghost_foot may break
This commit is contained in:
parent
ede6b03afa
commit
6f46594d36
1 changed files with 2 additions and 1 deletions
|
@ -37,10 +37,11 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{!-- jQuery needs to come before `{{ghost_foot}}` so that jQuery can be used in code injection --}}
|
||||||
|
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
|
||||||
{{! Ghost outputs important scripts and data with this tag }}
|
{{! Ghost outputs important scripts and data with this tag }}
|
||||||
{{ghost_foot}}
|
{{ghost_foot}}
|
||||||
|
|
||||||
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
|
|
||||||
<script type="text/javascript" src="{{asset "js/jquery.fitvids.js"}}"></script>
|
<script type="text/javascript" src="{{asset "js/jquery.fitvids.js"}}"></script>
|
||||||
{{! The main JavaScript file for Casper }}
|
{{! The main JavaScript file for Casper }}
|
||||||
<script type="text/javascript" src="{{asset "js/index.js"}}"></script>
|
<script type="text/javascript" src="{{asset "js/index.js"}}"></script>
|
||||||
|
|
Loading…
Reference in a new issue