P K

P K

  • NA
  • 284
  • 60.4k

Common way to get total page load time in angular

Aug 26 2021 7:39 AM

Like as we do in jQuery, I need in angular:
  var loadTime = window.performance.timing.domContentLoadedEventEnd - window.performance.timing.navigationStart;
  var loadTimeinsec = (loadTime / 1000).toFixed(1);
--------------------------------------------------------------
Can anyone please suggest the common way/method to get page load time in angular.


Answers (1)