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
πŸ’¬ Discuss
βœ… Correct Answer: (D) all older browsers supports async attribute
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

Explanation by: Mr. Dubey
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

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
949
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate