Baseline Widely available
The async
property of the HTMLScriptElement
interface is a boolean value that controls how the script should be executed. For classic scripts, if the async
property is set to true
, the external script will be fetched in parallel to parsing and evaluated as soon as it is available. For module scripts, if the async
property is set to true
, the script and all their dependencies will be fetched in parallel to parsing and evaluated as soon as they are available.
It reflects the async
attribute of the <script>
element.
A boolean.
Examples<script id="el" src="/example.js" async></script>
const el = document.getElementById("el");
console.log(el.async); // Output: true
Specifications Browser compatibility See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4