Check for performance.getEntriesByName before calling (#38186)
Check for performance.getEntriesByName before calling (#38186)

* Check for performance. getEntriesByName

* Refactor check

Co-Authored-By: Sukka <64b2b6d12bfe4baae7dad3d018f8cbf6b0e7a044@skk.moe>

Co-authored-by: Sukka <64b2b6d12bfe4baae7dad3d018f8cbf6b0e7a044@skk.moe>
Co-authored-by: JJ Kasper <7323a5431d1c31072983a6a5bf23745b655ddf59@jjsweb.site>
JeromeFitz/next.js,JeromeFitz/next.js,JeromeFitz/next.js,JeromeFitz/next.js