HTML Attributes

HTML async attribute

Allows eligible external classic scripts to execute as soon as they are ready, without preserving document order. Async module scripts may also execute when their dependency graph is ready. Applicable elements include: <script>. Check each element’s value rules. Boolean syntax: presence enables the state; omit the attribute to disable it. A string value of "false" does not turn it off. Example uses illustrative URLs or local assets; provide the corresponding files or application endpoints when running it.

Formal Syntax & Structure

html syntaxhtml
async

Parameters & Attributes

NameTypeDescription
asyncbooleanAllows eligible external classic scripts to execute as soon as they are ready, without preserving document order. Async module scripts may also execute when their dependency graph is ready.

Working Example

Example Snippethtml
<script src="analytics.js" async></script>

Browser Compatibility

Minimum supported versions across modern rendering engines

Chrome
1
Yes
Edge
12
Yes
Firefox
3.6
Yes
Safari
≤4
Yes
Checked desktop BCD snapshot: async on script. Versions denote the recorded start of support (≤ means at least that early), not a guarantee of all behavior. Unresolved mirror and preview rows omitted.
HTML Living Standard
HTML Reference