Is always the code written at the bottom of the doc executed after the DOM ready ?
Is listening to the ready event of the document
<!DOCTYPE html>
<html>
<head>
<script src="js/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
// code ..
});
</script>
</head>
<body>
<!-- Document -->
</body>
</html>
Equivalent to writing the code at the bottom of the document ?
<!DOCTYPE html>
<html>
<head>
<script src="js/jquery.js" type="text/javascript"></script>
</head>
<body>
<!-- Document -->
<script type="text/javascript">
// code ..
</script>
</body>
</html>