Skip to content

fix(PerformanceResourceTiming): clarify startTime is not always fetchStart - #45544

Open
BaconMan1168 wants to merge 1 commit into
mdn:mainfrom
BaconMan1168:fix-43903-starttime-fetchstart
Open

fix(PerformanceResourceTiming): clarify startTime is not always fetchStart#45544
BaconMan1168 wants to merge 1 commit into
mdn:mainfrom
BaconMan1168:fix-43903-starttime-fetchstart

Conversation

@BaconMan1168

Copy link
Copy Markdown
Contributor

Description

The PerformanceEntry.startTime bullet on the PerformanceResourceTiming page stated that the value is equivalent to PerformanceResourceTiming.fetchStart. It now explains that the two are equal only when there are no HTTP redirects.

Motivation

The claim contradicted the timestamp diagram directly below it, which places startTime before the redirect phase and fetchStart after it. Readers had no way to tell which one was right.

Per the Resource Timing spec, a resource entry's startTime comes from the fetch timing info's start time, while fetchStart returns the post-redirect start time, so the values diverge as soon as a redirect is involved. The new text reuses the redirect caveat already documented on the fetchStart subpage.

Additional details

Related issues and pull requests

Fixes #43903

…Start

The startTime bullet claimed the value is equivalent to fetchStart, which
contradicted the timestamp diagram below it. The two only coincide when there
are no HTTP redirects, since fetchStart is the time immediately before the
final resource in the redirection is fetched.
@BaconMan1168
BaconMan1168 requested a review from a team as a code owner September 7, 2026 04:01
@BaconMan1168
BaconMan1168 requested review from sideshowbarker and removed request for a team September 7, 2026 04:01
@github-actions github-actions Bot added Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed labels Sep 7, 2026
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Preview URLs (1 page)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PerformanceResourceTiming.startTime vs PerformanceResourceTiming.fetchStart

2 participants