Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

Internet Explorer 10

 

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.

Remarks

Starting with Windows 8.1, dynamically added script elements load asynchronously for Windows Runtime apps using JavaScript. To learn more, see API Changes for Windows 8.1.

See also

HTMLScriptElement

 

 

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft