Tuesday, May 21, 2024
 Popular · Latest · Hot · Upcoming
55
rated 0 times [  60] [ 5]  / answers: 1 / hits: 37536  / 15 Years ago, fri, may 22, 2009, 12:00:00

async=async attribute of a <script> tag in HTML, What does it mean?



<script async=async src=....></script>


Can be see used here for example


More From » html

 Answers
27

If the async attribute is set on an external script (one with src=), browsers that support it will download that script in the background without blocking the rest of the content on the page. The script will execute whenever it is finished downloading.



http://dev.w3.org/html5/spec/Overview.html#attr-script-async



As I mentioned in a comment, setting async=true, async=false or async=anything all mean the same thing. They enable the async behavior. The only way to make a script non-async is to completely omit the attribute.



http://dev.w3.org/html5/spec/Overview.html#boolean-attributes


[#99477] Tuesday, May 19, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jazminkyrap

Total Points: 631
Total Questions: 89
Total Answers: 109

Location: Finland
Member since Fri, Oct 21, 2022
2 Years ago
;