1. Home
  2. Javascript
  3. Async

Async attribute can be added to the script tag loading an external file. Script will be loaded asynchronously and executed in the background. Note, this can cause script executing before page has been completely parsed so make sure you account for that in your code.

#javascript#performance
<script src="/path/to/the/script.js" async></script>
copy
Full Javascript cheatsheet
NordVPN NordVPN