Which of the following computation is correct to calculate the time taken for page load once the page is received from the server?

Lượng Tiger

New member
Which of the following computation is correct to calculate the time taken for page load once the page is received from the server?
A. responseEnd-loadEventEnd
B. loadEventEnd-responseEnd
C. loadEventEnd/responseEnd
D. responseEnd/loadEventEnd
 
Answer: b
Explanation: The legacy PerformanceTiming.loadEventEnd read-only property returns an unsigned long representing the moment, in milliseconds since the UNIX epoch, when the load event handler terminated, that is when the load event is completed. The time taken for page load once the page is received from the server: loadEventEnd-responseEnd.
 

Tìm kiếm

Back
Top