1

I want to measure the iframe load time

I tried using async-await but this doesn't work

mesureLoadTime = async function()
{
this.StartTime = new Date().getTime();
this.content = await this.sanitizer.bypassSecurityTrustResourceUrl('https://www.example.com')
this.EndTime = new Date().getTime();
this.loadTime = (this.EndTime - this.StartTime)/ 1000
}

1 Answers1

0

Check console.time if that's what you're looking for