Skip to content

Commit 67885ee

Browse files
authored
Update location of index.js script tag
The script tag in `get-started/index.md` is incorrectly placed. If someone tries to execute the code to demonstrate how browsers load global variables, they're going to get an error that the browser can't read `appendChild` of undefined because `document.body` won't exist yet. The script tag should be placed at the bottom of the body so that they don't get confused (although this is a pretty inconsequential thing and the whole point of this part of the tutorial is to tell people not to code this way lol).
1 parent ddca85d commit 67885ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/get-started/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ __index.html__
5050
<head>
5151
<title>Webpack demo</title>
5252
<script src='https://unpkg.com/[email protected]' type='text/javascript'></script>
53-
<script src='index.js' type='text/javascript'></script>
5453
</head>
5554
<body>
55+
<script src='index.js' type='text/javascript'></script>
5656
</body>
5757
</html>
5858
```

0 commit comments

Comments
 (0)