1.

What is the purpose of the domLoading attribute?(a) Document exists(b) Document can load(c) Document has loaded(d) Document begins to loadI got this question in class test.My question comes from Lazy Loading topic in chapter Invocation and Performance Navigation of JavaScript

Answer»

Correct OPTION is (d) Document begins to LOAD

Easiest explanation: domLoading is the TIME immediately before the USER agent SETS the current document readiness to ‘loading’. The domLoading attribute is used when the document begins to load.



Discussion

No Comment Found

Related InterviewSolutions