<head> section of the page on which it is used:
There are a few possible downsides to this:
- Page rendering may be halted until the script is loaded and executed.
- A script written in the
<head>may attempt to modify DOM elements that have not yet appeared on the page.
…thus avoiding both issues.
- More practically, it allows us to continue to validate the HTML page without confusing the validator.