title: Where best to put CSS/ JS - top, body or bottom?
body: <p>In a recent interview I was asked the following questions:</p>
  
  <p>Where best to put CSS - top, body or bottom?
  Where best to put JS - top, body or bottom?</p>
  
  <p>I had only assumed that because of standard recommendations to put these elements in the head tag (well, excluding inline CSS ofcourse) that this was the best way. But, my interviewer told me that for CSS - this is best put at the top of the page as it allows HTML to be render with the CSS already loaded; and for JS put at the bottom of the page as this will only be run after the DOM is loaded. Is this correct? Is there anywhere I can read more about this (and other unknown quirks)? Very curious to learn more. Thanks</p>