Support load timings for non-Chromium browsers
What does this MR do and why?
This MR adds support for load timings for non-Chromium based browsers.
Previously if the entry was not found, the whole section would be missing. Now, either it displays the contentful paint timing, or displays a NaN if the entry doesn't exist.
Screenshots or screen recordings
Before (Firefox):
After (Firefox):
After (if performance entry for 'first-contentful-paint' is missing, in a rarer browser(?)):
How to set up and validate locally
- With GDK, visit http://localhost:3000/ in a Chromium browser and confirm timing information is present.
- With GDK, Visit http://localhost:3000/ in Firefox and confirm timing information is present.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #353064 (closed)