A zero in a Resource Timing field does not automatically mean a request took no time, came from cache or failed. Cross-origin timing exposure rules can mask details of a successfully displayed resource. Diagnose what the browser is permitted to expose before choosing a performance repair.
The task is a public guide whose screenshot or embedded dependency appears slow. Keep delivery evidence, performance-entry availability and exposed timing phases on separate lines. A readable image and an opaque timing entry can coexist without contradiction.
Read The Cross-Origin Exposure Contract
The Resource Timing specification describes cross-origin entries and the timing-allow check. When that check fails, the entry is opaque and many timing attributes return zero or an empty string. The specification also describes additional field-specific effects from CORS-cross-origin status and service-worker behavior.
Do not compress that into a universal rule that Timing-Allow-Origin exposes every byte-size field. Different attributes have different conditions. A timing policy is also not the same thing as granting script access through CORS, and neither should be changed casually to make a dashboard look complete.
The image-CDN access audit verifies the declared asset and actual public file. This review governs what the performance evidence can tell you about that delivery, rather than deciding whether the asset should become public.
Freeze A Filled Observation Matrix
All values below are hypothetical diagnostic inputs. They are not captured browser entries or measurements of a real CDN. The matrix includes independent evidence where needed instead of assigning a cause from one zero.
| Case | Resource evidence | Timing evidence | Supported decision |
|---|---|---|---|
| T1 | Same-origin screenshot displayed | requestStart 20,responseStart 55,responseEnd 75 | Request-to-response-start interval 35ms;later interval 20ms |
| T2 | Cross-origin screenshot displayed; timing permission absent | Detailed phases zero; broader entry duration 120ms in fixture | Preserve masked phases; do not claim zero-cost or failure |
| T3 | Cross-origin asset displayed; timing permission verified for relevant phases | requestStart 40,responseStart 90,responseEnd 110 | Relevant exposed intervals 50ms and 20ms |
| T4 | Same-origin asset displayed; independent cache evidence available | transferSize 0,duration 5ms | Cache interpretation supported by combined evidence |
| T5 | Cross-origin asset with timing permission | Body-size fields zero under remaining exposure conditions | Inspect field-specific rules; cache/failure not established |
| T6 | No matching entry found | No phase values available | Investigate matching, collection support and buffer; no invented zero |
T2's broader duration is an explicitly supplied observation in this synthetic fixture. It is not a promise that every cross-origin entry will have that exact field availability or value. T5 deliberately prevents the assumption that timing permission alone unlocks all details.
Keep The Timing Arithmetic Narrow
For T1,55 minus 20 is 35 milliseconds from the recorded request start to response start.75 minus 55 is 20 milliseconds from response start to response end. Those intervals do not include every earlier lookup or connection phase, and they do not establish when the screenshot became visually useful.
For T3,90 minus 40 is 50 milliseconds and 110 minus 90 is 20 milliseconds. Compare like intervals under documented exposure and collection conditions. Do not rank T1 and T3 as two sites' complete user experiences from those values alone.
The LCP request-discovery review asks a separate performance question about when a critical image becomes discoverable and useful. Resource timing can contribute evidence without replacing the metric's actual definition or visual observation.
Diagnose A Zero Without Guessing Its Cause
Start with the exact attribute and current specification. Some values are masked by timing policy; others can reflect cache behavior or unavailable phases. Preserve the actual entry and relevant exposure context with sensitive URL details removed.
For the fictional T4 cache case, the independent evidence is essential. Removing it changes the conclusion: transferSize 0 alone is insufficient for the same confident interpretation across all origins and response conditions. Do not let a convenient cache label hide that missing premise.
For a resource handled by a service worker, identify that path. The specification notes that reported timing reflects the client/service-worker interaction, not necessarily the worker's own internal network activity. A browser-facing duration is not automatically the origin fetch duration you hoped to diagnose.
Treat A Missing Entry As Its Own State
Verify the lookup identity and observation timing. Responsive selection, redirects or a changed URL can mean the code searches for the wrong resource name. An entry can also be unavailable because of observation or buffering conditions. Keep those possibilities as hypotheses until tested.
Do not convert no entry into duration 0. That creates an artificial fast result and can bias an average toward the pages with the weakest evidence. Preserve an unavailable state and an explicit coverage count.
The measurement-gap method offers the same reporting discipline in another setting. Missing performance evidence should not be reassigned to a favorable category simply because a chart requires a number.
Ask For A Bounded Exposure Decision
If timing detail is needed, give the asset owner the exact public resource, affected attributes, intended diagnostic purpose and current evidence. The owner can decide which exposure is appropriate under its security and privacy policy. This article does not prescribe relaxing access controls or changing production headers.
Avoid collecting full signed URLs, private query strings or user-specific resource paths in a broadly shared performance log. Use an approved sanitized resource identity that still lets the responsible engineer reproduce the case.
A response-policy change and a resource optimization are different changes. Exposing a previously hidden phase can improve observability without making the resource faster. Preserve that distinction when a new dashboard suddenly shows more timing detail.
Close With An Observable Conclusion
Save origin relationship, asset identity, displayed/error evidence, exact timing attributes, exposure context, service-worker/cache evidence, interpretation and unresolved coverage. The release annotation ledger should identify collection or policy changes that break comparability.
Approve the diagnostic conclusion only at the level the evidence supports: a confirmed slow exposed interval, masked detail awaiting an owner decision, or unavailable entry requiring investigation. Do not label a zero as a performance success or failure by default. This produces a defensible next action for a public guide without claiming a ranking gain or a complete account of the reader's experience.
