1.

How is the render time calculated?(a) Date.Now()(b) Date.Now() – performance.timing.domLoading(c) performance.domLoading(d) Date.Now() – performance.domLoadingThe question was posed to me in an interview.Origin of the question is Lazy Loading topic in division Invocation and Performance Navigation of JavaScript

Answer»

Right choice is (B) Date.Now() – performance.timing.domLoading

The explanation is: The rendering ENGINE parses the HTML and the CSS and displays the parsed content on the screen. The render time is calculated as Date.Now() – performance.timing.domLoading.



Discussion

No Comment Found

Related InterviewSolutions