I currently am working on a large site with many different issues to contend with. One being that I have no easy way to include a script into my <head>
without manually doing it for 500+ pages.
I have the possibility to include jQuery.min just inside the <body>
tag from an include located there.
My question is, aside it not being a standard implementation, would there be any negative effects from not loading jQuery within the <head>
tag? Will all the functions be available?
I am aware that if I do this, I will not be able to call jQuery from within the <head>
or before this include... that's okay.
example:
<head>
Standard Head Stuff
</head>
<body>
<div>Some Content</div>
<!-- My Include is roughly here -->
<script type="text/javascript" src="jquery.min.js"></script>
<div>More content</div>
<script type="text/javascript">
$(document).ready(function(){
// Put my jQuery commands here
});
</script>
</body>
<head>
, and add jQuery to that include file. It's probably worth the hassle in the long run.