$(document).ready(function(){}); vs script at the bottom of page
<p>what is the difference / advantage / disadvantage of writing script at the bottom of the page and writing the script in </p>

<pre><code>$(document).ready(function(){});
</code></pre>
