As I delve into exploring the performance APIs, I have come across window.performance and PerformanceObserver. These two functionalities seem to serve similar purposes. For instance, if I need to obtain the FCP time, I can retrieve it from performance.getEntries() or through PerformanceObserver by observing paint.
I am curious to know about the distinctions in terms of positioning and functionality between these two APIs. Any insights would be greatly appreciated!
I've gone through some documentation on MDN and other sources as well.