Commit 18f2af35 authored by Enrique Alcántara's avatar Enrique Alcántara

Merge branch '353064-support-load-timings-for-non-chromium' into 'master'

Support load timings for non-Chromium browsers

See merge request gitlab-org/gitlab!81260
parents 4749019e fdbde7c9
......@@ -82,7 +82,9 @@ const initPerformanceBar = (el) => {
let summary = {};
if (navigationEntries.length > 0) {
const backend = Math.round(navigationEntries[0].responseEnd);
const firstContentfulPaint = Math.round(paintEntries[1].startTime);
const firstContentfulPaint = Math.round(
paintEntries.find((entry) => entry.name === 'first-contentful-paint')?.startTime,
);
const domContentLoaded = Math.round(navigationEntries[0].domContentLoadedEventEnd);
summary = {
......
......@@ -48,12 +48,13 @@ From left to right, the performance bar displays:
- **External HTTP calls**: the time taken (in milliseconds) and the total
number of external calls to other systems. Click to display a modal window
with more details.
- **Load timings** of the page: if your browser supports load timings (Chromium
and Chrome) several values in milliseconds, separated by slashes.
- **Load timings** of the page: if your browser supports load timings, several
values in milliseconds, separated by slashes.
Click to display a modal window with more details. The values, from left to right:
- **Backend**: time needed for the base page to load.
- [**First Contentful Paint**](https://web.dev/first-contentful-paint/):
Time until something was visible to the user.
Time until something was visible to the user. Displays `NaN` if your browser does not
support this feature.
- [**DomContentLoaded**](https://developers.google.com/web/fundamentals/performance/critical-rendering-path/measure-crp) Event.
- **Total number of requests** the page loaded.
- **Memory**: the amount of memory consumed and objects allocated during the selected request.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment