1.

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) Time of scrollingI got this question during an internship interview.This is a very interesting question from Invocation of the Performance Object topic in division Invocation and Performance Navigation of JavaScript

Answer»

Correct option is (c) Time of navigation and page load event

For explanation I would say: Each PERFORMANCE.timing attribute shows the time of a navigation event (such as when the page was REQUESTED) or page load event (such as when the DOM began loading), measured in MILLISECONDS. The legacy Performance.timing read-only property returns a PerformanceTiming object CONTAINING latency-related performance INFORMATION.



Discussion

No Comment Found

Related InterviewSolutions