Skip to content

Commit

Permalink
panner-node: Script doesn't load as the DOM is not ready (#120)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
shuizhongyueming and teoli2003 committed Dec 21, 2023
1 parent d341911 commit cf2dcf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panner-node/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
type="text/css"
/>
<link rel="stylesheet" href="style.css" />
<script src="main.js"></script>
<script src="main.js" defer></script>
</head>

<body>
Expand Down

0 comments on commit cf2dcf0

Please sign in to comment.