M

Mr. Dubey • 52.30K Points
Coach

Q. Which of the following statements is false?

(A) async and defer attributes of script tag execute before the domcontentloaded event
(B) defer executes each script sequentially
(C) async executes each script when it is ready
(D) all older browsers supports async attribute
Correct : Option (D)

Explanation:
 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

Share

Discusssion

Login to discuss.

Be the first to start discuss.