The 2.1.2 Delay script refers to the defer property and only applies to external scripts, that is, scripts that have defer properties.
Delaying scripts at the bottom of the page is still the best choice due to the lack of uniform support for deferred scripting by various delay browsers and the fact that the defer attribute is no longer supported after HTML5.
2.1.3 Asynchronous Script <script type= "text/javascript" async src= "Example1.js" ></script>
<script type= "text/javascript" async src= "Example2.js" ></script>
The second script may be executed before the first script, so it is important to ensure that two scripts are not dependent on each other.
The purpose of specifying the async attribute is to not allow the page to wait for two scripts to be downloaded and executed to asynchronously load other content on the page. Therefore, it is recommended that asynchronous scripts do not modify the DOM during loading.
Asynchronous scripts must be executed before the Load event of the page, but may be executed before or after the domcontentloaded event is triggered.
2.1.4 usage in XHTML only such formats can be supported in a variety of browsers, although a bit hack flavor.
<script type="text/javascript">
<![CDATA[
function compare(a, b){
if(a<b)
alert("A is less than B");
else if(a>b)
alert("A is greater than B");
else
alsert("A is equal B");
}
]]>
</script>
2.3 Document mode The calibration mode is very close to the standard mode, and their differences are negligible. So when someone proposes "standard mode", it is possible that either of the two patterns is in the same way.
2.4 <noscript> Elements
<body>
<noscript>
<p> 页面需要浏览器支持</p>
</noscript>
</body>
This page displays a message to the user in case the script is invalid. In a script-enabled browser, the user will never see it.
From for notes (Wiz)
JavaScript series: JavaScript advanced Programming, Chapter2, using JavaScript in HTML