6 Properties for 1 <script>
Async immediately downloads the external script for the current script tag without affecting the other CharSet. Defer the document is displayed before executing the script, only valid for external script language no use SRC type description code content mine type default is text/ JavaScript is nothing. 2 after the interpreter has evaluated all the code inside the <script> element, the rest of the page will not be loaded or displayed by the browser. 3 There are two script embedded external introductions when parsing an externally-introduced JS file, The processing of the page also stops 4 recommended benefits of external introduction 1 maintainability 2 cacheable 3 adapt to future 5 document mode DOCTYPE promiscuous mode standard mode to use standard mode 6 <noscript> if the browser does not support script browser support scripts, but the script is disabled to meet the above bar One of the pieces, it will show the contents of NoScript more than 7 <script> parse order if no defer and async are sequential parsing
Reading notes-JavaScript Advanced Programming-chapter II using JavaScript in HTML