Why do we need to use an onload event in the script tag after using the async attribute?
A. Invoke code during page loading
B. Invoke code during script loading
C. Invoke code during downloading
D. None of the mentioned
Answer: Option C
Solution(By Examveda Team)
When using async you don’t know when the file will be downloaded, so you can attach an onload event handler to the script tag. This will allow you to invoke or instantiate any code that will need to be run when the file is downloaded:Which of the following property gives access to the JavaScript memory usage data?
A. performance.memory
B. memory(performance)
C. performance(memory)
D. none of the mentioned
What is the purpose of the timing property in the window.performance object?
A. Time of navigation event
B. Time of page load event
C. Time of navigation and page load event
D. None of the mentioned
Which of the following property is associated with the Response event?
A. responseStart
B. responseEnd
C. both responseStart and responseEnd
D. none of the mentioned
A. responseEnd-loadEventEnd
B. loadEventEnd-responseEnd
C. loadEventEnd/responseEnd
D. responseEnd/loadEventEnd
Join The Discussion