I know that, in jQuery, we are told to use $(document).ready()
in order to ensure that the DOM elements are ready for interaction. I know that this definitely applies if the script tags are in the <head>
. If they are at the end of the <body>
, after all of the DOM elements, should I still use a DOM-ready function? Are there browsers in which my code would fail if I did not?
Thanks!