![Why need to use <link rel="preload" as="script"/> and <script async="" /> when building static html · vercel next.js · Discussion #16154 · GitHub Why need to use <link rel="preload" as="script"/> and <script async="" /> when building static html · vercel next.js · Discussion #16154 · GitHub](https://user-images.githubusercontent.com/52997226/90108558-b3296200-dd74-11ea-9b85-22127b8188c4.png)
Why need to use <link rel="preload" as="script"/> and <script async="" /> when building static html · vercel next.js · Discussion #16154 · GitHub
![codedamn on Twitter: "To link to an external JavaScript file, you need to create a separate .js file and then link to it from within your HTML file using the script tag. codedamn on Twitter: "To link to an external JavaScript file, you need to create a separate .js file and then link to it from within your HTML file using the script tag.](https://pbs.twimg.com/media/FqlyLgZWIAAYUgH.jpg:large)
codedamn on Twitter: "To link to an external JavaScript file, you need to create a separate .js file and then link to it from within your HTML file using the script tag.
![javascript - script.js file not linking to to html files with script tag src attribute - Stack Overflow javascript - script.js file not linking to to html files with script tag src attribute - Stack Overflow](https://i.stack.imgur.com/53oWY.jpg)