all my jquery scripts has:
$(document).ready(function () {
in the first line.
I place them all in <head>
My question is: with this tag, are there any differences if I place this script in head or in the end of body?
all my jquery scripts has:
$(document).ready(function () {
in the first line.
I place them all in <head>
My question is: with this tag, are there any differences if I place this script in head or in the end of body?
There is no difference, as jQuery will only execute these functions when the DOM is ready. And that won't happen until browser fetches and parses the whole HTML.
But note that these functions will be executed in the same order they are defined in the document, so that can make a difference in many cases.