<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<div>It seems you are implying that only parser-inserted scripts can run immediately. But scripts created using DOM methods can also do that, see
<a href="https://html.spec.whatwg.org/multipage/scripting.html#script-processing-inline" class="OWAAutoLink" id="LPlnk280912" previewremoved="true">
https://html.spec.whatwg.org/multipage/scripting.html#script-processing-inline</a><br>
<br>
```js<br>
var s = document.createElement("script");<br>
s.text = "console.log(1);";<br>
document.documentElement.appendChild(s);<br>
console.log(2);<br>
```</div>
<div><br>
<div>The output will be `1`, `2`. The script runs immediately, it's not async.<br>
<br>
- Oriol</div>
<br>
</div>
</div>
</body>
</html>