Add deferred scripts for dynamic age
This commit is contained in:
@@ -12,6 +12,9 @@
|
||||
>
|
||||
<link rel="stylesheet" href="css/themes.css" media="all">
|
||||
<link rel="stylesheet" href="css/index.css" media="all">
|
||||
<script defer type= "module" src="js/me.mjs"></script>
|
||||
<script defer type= "module" src="index.mjs"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
import { age } from "./lib/me.mjs"
|
||||
|
||||
const age_span = document.getElementById("age")
|
||||
age_span.textContent = age().toString()
|
||||
Reference in New Issue
Block a user