title: Optimizing pages from side of javascript
body: <p>I need to know about two things. I was looking on google but I could not found any good.</p>
  
  <p><strong>First thing is: Location of the scripts in the structure of documents.</strong></p>
  
  <p>Can anyone explain to me what's going on? How it works to optimize pages and where you should put the scripts?</p>
  
  <p><strong>Second thing is: Packing and compressing js code.</strong></p>
  
  <p>I find some packers in google like this: <a href="http://dean.edwards.name/packer/" rel="nofollow">http://dean.edwards.name/packer/</a> but how its work? All writen scripts should pack?</p>
  
  <p>Please for an explanation or some link to article.</p>