Skip to content

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):

Screen_Shot_2022-02-22_at_23.01.37

After (Firefox):

Screen_Shot_2022-02-22_at_23.07.30

After (if performance entry for 'first-contentful-paint' is missing, in a rarer browser(?)):

Screen_Shot_2022-02-22_at_23.07.10

How to set up and validate locally

  1. With GDK, visit http://localhost:3000/ in a Chromium browser and confirm timing information is present.
  2. 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.

Related to #353064 (closed)

Merge request reports