Document Parse Order

  • When you navigate your browser to a URL, the server will send back HTML
  • Browser reads the HTML from the top to the bottom
  • When it hits <script> tags or links, it runs them right away
  • This affects where you can put your <script> tags depending on what your page does

3 / 12