InterviewSolution
Saved Bookmarks
| 1. |
What is the purpose of using the async attribute in the script tag?(a) Load the script asynchronously(b) Load the script synchronously(c) Load the page asynchronously(d) Load the page synchronouslyI had been asked this question in homework.This key question is from Script Loading in chapter Invocation and Performance Navigation of JavaScript |
|
Answer» RIGHT choice is (a) Load the script asynchronously To ELABORATE: The ASYNC option is a NATIVE attribute that will tell the browser to load the script asynchronously. The async attribute is a BOOLEAN attribute. When present, it specifies that the script will be executed asynchronously as soon as it is available. |
|