Skip to content

Commit cf2dcf0

Browse files
panner-node: Script doesn't load as the DOM is not ready (#120)
* Update index.html The main.js should load after the DOM structure to make querySelector work correctly * Use defer attribute instead --------- Co-authored-by: Jean-Yves Perrier <jypenator@gmail.com>
1 parent d341911 commit cf2dcf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

panner-node/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
type="text/css"
1313
/>
1414
<link rel="stylesheet" href="style.css" />
15-
<script src="main.js"></script>
15+
<script src="main.js" defer></script>
1616
</head>
1717

1818
<body>

0 commit comments

Comments
 (0)