xxxxxxxxxx
//A script that will not run until after the page has loaded
<script src="demo.js" defer></script>
xxxxxxxxxx
<!DOCTYPE html>
<html>
<head>
<title>Defer Example</title>
<script defer src="script.js"></script>
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html>