Sometimes I end up with a lot of code in the $("document").ready()
function which usually sits inside the .html
file.
$("document").ready(function() {
// The DOM is ready!
// Let the DOM manipulation begin!
});
What are the best practices for locating the $("document").ready()
. Should it be in a different .js
file and included in the HTML using:
<script src="MyDocReadyJS.js"></script>