Sử dụng async và defer full (Oke)

https://www.w3schools.com/tags/att_script_async.asp

<!DOCTYPE html>
<html>
<body>
<p id="p1">Hello World!</p>
<script src="demo_async.js" async></script>
<p><strong>Note:</strong> The async attribute of the script tag is not supported in Internet Explorer 9 and earlier versions.</p>
</body>
</html>
// demo_async.js
alert(document.getElementById("p1").firstChild.nodeValue);

Last updated