What is the result when the showPerformanceMetrics() is called before loading the remote script?
A
Throws an exception
B
Throws an error
C
It will load by itself
D
Throws an exception and It will load by itself
Correct Answer: Throws an error
perflogger.showPerformanceMetrics() tells the user about the performance parameters of the script loading. If you try to make the call to perfLogger.showPerformanceMetrics() and the script hasn’t just loaded but also executed, then you will get an error.