Possible Duplicate:
$(document).ready(function(){}); vs script at the bottom of page
Ever since I read this book, I've written my pages like this:
<!DOCTYPE html>
<html>
<head>
<!-- styles -->
</head>
<body>
<!-- page content -->
<!-- scripts -->
</body>
</html>
Is this, relatively speaking, like running all of my code in a jQuery $(document).ready(function() {});
? I haven't really noticed any difference in things being ready or not, things just work and I don't have to wrap things in a function to get things going.