all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize
This topic has not yet been rated - Rate this topic

async attribute | async property

Provides control of when a script executes while a document loads. Setting a script to run asynchronously can improve performance by unblocking the rest of the document. When async = false, it can preserve execution order to ensure dependent scripts are run in order.

This property is read/write.

Syntax

HTML
<element async="ptr" ... >
JavaScript
object.async = ptr
ptr = object.async

Property values

Type: boolean

When true, the script will execute asynchronously, otherwise script is executed as page loads.

See also

HTMLScriptElement

 

 

Build date: 11/28/2012

© 2013 Microsoft. All rights reserved.