Home » HTML » Html miscellaneous » Question
  1. Which of the following statements is false?
    1. all older browsers supports async attribute
    2. async executes each script when it is ready
    3. defer executes each script sequentially
    4. async and defer attributes of script tag execute before the DOMContentLoaded event
    5. None of these
Correct Option: A

In async attribute, the script is executed asynchronously with the rest of the page (the script will be executed while the page continues the parsing). Defer, the Boolean attribute is set to indicate to a browser that the script is meant to be executed after the document has been parsed, but before firing DOMContentLoaded event. Older browsers doesn’t support async attribute.



Your comments will be displayed only after manual approval.