what is a good reason to keep it in the ?
Based on t
The reason behind this is as the Head gets loaded before the body. Any dynamic javascript code that gets executed in the body on load will execute correctly.
If you have javascript that is just before the tag then any javascript calls made to functions by your page as it loads will error.
So yes putting javascript before the tag will load faster. But only if your javascript will be executed after page load via clicks for example.