Skip to content

Commit

Permalink
Add Server Timing information to docs (#324)
Browse files Browse the repository at this point in the history
* Add Server Timing information to docs

* Review feedback
  • Loading branch information
tunetheweb committed Mar 1, 2023
1 parent 9f11c4c commit 39dbf5d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,8 @@ interface FCPAttribution {
fcpEntry?: PerformancePaintTiming;
/**
* The `navigation` entry of the current page, which is useful for diagnosing
* general page load issues.
* general page load issues. This can be used to access `serverTiming` for example:
* navigationEntry?.serverTiming
*/
navigationEntry?: PerformanceNavigationTiming | NavigationTimingPolyfillEntry;
}
Expand Down Expand Up @@ -1129,7 +1130,8 @@ interface LCPAttribution {
elementRenderDelay: number;
/**
* The `navigation` entry of the current page, which is useful for diagnosing
* general page load issues.
* general page load issues. This can be used to access `serverTiming` for example:
* navigationEntry?.serverTiming
*/
navigationEntry?: PerformanceNavigationTiming | NavigationTimingPolyfillEntry;
/**
Expand Down Expand Up @@ -1169,8 +1171,9 @@ interface TTFBAttribution {
*/
requestTime: number;
/**
* The `PerformanceNavigationTiming` entry used to determine TTFB (or the
* polyfill entry in browsers that don't support Navigation Timing).
* The `navigation` entry of the current page, which is useful for diagnosing
* general page load issues. This can be used to access `serverTiming` for example:
* navigationEntry?.serverTiming
*/
navigationEntry?: PerformanceNavigationTiming | NavigationTimingPolyfillEntry;
}
Expand Down
3 changes: 2 additions & 1 deletion src/types/fcp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ export interface FCPAttribution {
fcpEntry?: PerformancePaintTiming;
/**
* The `navigation` entry of the current page, which is useful for diagnosing
* general page load issues.
* general page load issues. This can be used to access `serverTiming` for example:
* navigationEntry?.serverTiming
*/
navigationEntry?: PerformanceNavigationTiming | NavigationTimingPolyfillEntry;
}
Expand Down
3 changes: 2 additions & 1 deletion src/types/lcp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ export interface LCPAttribution {
elementRenderDelay: number;
/**
* The `navigation` entry of the current page, which is useful for diagnosing
* general page load issues.
* general page load issues. This can be used to access `serverTiming` for example:
* navigationEntry?.serverTiming
*/
navigationEntry?: PerformanceNavigationTiming | NavigationTimingPolyfillEntry;
/**
Expand Down
5 changes: 3 additions & 2 deletions src/types/ttfb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ export interface TTFBAttribution {
*/
requestTime: number;
/**
* The `PerformanceNavigationTiming` entry used to determine TTFB (or the
* polyfill entry in browsers that don't support Navigation Timing).
* The `navigation` entry of the current page, which is useful for diagnosing
* general page load issues. This can be used to access `serverTiming` for example:
* navigationEntry?.serverTiming
*/
navigationEntry?: PerformanceNavigationTiming | NavigationTimingPolyfillEntry;
}
Expand Down

0 comments on commit 39dbf5d

Please sign in to comment.