What is HTML async Attribute?
HTML, HTML Attributes 0 CommentsThe async
attribute specifies that the script will be executed asynchronously as soon as it is available. And It is a boolean attribute.
The
async
attribute is only for external scripts usage and it can be used only if the src attribute is present.
Tag Support
You can use the async
attribute with <script>
tag.
Example
<script src="my_main.js" async></script>
Browser Support
Attribute | |||||
---|---|---|---|---|---|
async | Yes | 10.0 | 3.6 | Yes | Yes |