I have read about several ways to embed Javascript in HTML document.First, in head section:\[code\]<head>...<script src="http://stackoverflow.com/questions/13782771/abc.js"></script></head>\[/code\]Second, in the end of document's body:\[code\]<body><!-- content --><script src="http://stackoverflow.com/questions/13782771/abc.js"></script></body>\[/code\]First way is more esthetic, but second version assures that all the items in DOM are loaded. I use HTML5 (but probably it doesn't matters)Which way is better and why?