title: What is the most ideal way of loading javascript files?
body: <p>What is the most ideal way of loading javascript files? Also, I want to make sure that order of the javascript files should be maintained. If I have</p>
  
  <p><code>&lt;script src="javascript1.js"&gt;</code><br>
  <code>&lt;script src="javascript2.js"&gt;</code><br></p>
  
  <p>on my page, then javascript1.js should load before javascript2.js</p>
  
  <p>Thanks.</p>
  
  <p>EDIT: Thank you for your answers, but mine question is not only related with the order of js files. I want to load js files as quickly as possible without using any 3rd party js library. The solution which is similar can be found at www.nczonline.net/blog/2009/07/28/the-best-way-to-load-external-javascript/, but using this does not guarantee the order of the files for me, atleast. </p>