Tuesday 17 January 2012

Where to Place Scripts in HTML


  • Put the scripts at the bottom of the HTML document, right before the </body> tag except the scripts that need to run before the documents loads or as it loads
  • Put any scripts that must be in the <head> right before the </head> tag, i.e. the last thing to load in <head>




No comments:

Post a Comment