1.

What is the purpose of script loading?(a) Load Scripts programmatically(b) Load JavaScript files manually(c) Load JavaScript files programmatically(d) Load Scripts programmatically & manuallyThe question was asked during an interview.This interesting question is from Script Loading topic in section Invocation and Performance Navigation of JavaScript

Answer»

The correct choice is (c) Load JAVASCRIPT files PROGRAMMATICALLY

Easy explanation: The script loading loads remote JavaScript files programmatically and allow us to trick the rendering engine. The async attribute is a BOOLEAN attribute. When PRESENT, it SPECIFIES that the script will be executed asynchronously as soon as it is available.



Discussion

No Comment Found

Related InterviewSolutions