Skip to content

Faster TTFB than LCP #13040

Closed
Closed
@bcoe

Description

@bcoe

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

8.18

Framework Version

No response

Link to Sentry event

No response

SDK Setup/Reproduction Example

@sentry/[email protected]
│ ├─┬ @sentry/[email protected]
│ │ ├─┬ 
[@sentry](https://x.com/sentry)
-internal/[email protected]
│ │ │ ├── @sentry/[email protected] deduped
│ │ │ ├── @sentry/[email protected] deduped
│ │ │ └── @sentry/[email protected] deduped
│ │ ├─┬ 
[@sentry](https://x.com/sentry)
-internal/[email protected]
│ │ │ ├── @sentry/[email protected] deduped
│ │ │ ├── @sentry/[email protected] deduped
│ │ │ └── @sentry/[email protected] deduped
│ │ ├─┬ 
[@sentry](https://x.com/sentry)
-internal/[email protected]
│ │ │ ├── 
[@sentry](https://x.com/sentry)
-internal/[email protected] deduped
│ │ │ ├── @sentry/[email protected] deduped
│ │ │ ├── @sentry/[email protected] deduped
│ │ │ └── @sentry/[email protected] deduped
│ │ ├─┬ 
[@sentry](https://x.com/sentry)
-internal/[email protected]
│ │ │ ├── 
[@sentry](https://x.com/sentry)
-internal/[email protected] deduped
│ │ │ ├── @sentry/[email protected] deduped
│ │ │ ├── @sentry/[email protected] deduped
│ │ │ └── @sentry/[email protected] deduped
│ │ ├── @sentry/[email protected] deduped
│ │ ├── @sentry/[email protected] deduped
│ │ └── @sentry/[email protected] deduped
│ ├─┬ @sentry/[email protected]
│ │ ├── @sentry/[email protected] deduped
│ │ └── @sentry/[email protected] deduped
│ ├── @sentry/[email protected]
│ ├─┬ @sentry/[email protected]
│ │ └── @sentry/[email protected] deduped

Steps to Reproduce

A user reported a faster TTFB measurement than LCP and found this to be odd (how did we render the LCP faster than delivering the first byte of data to the customer?)

Image

@k-fish suggested maybe this has to do with prefetching resources? If so, could we detect this and indicate it in the UI?

Expected Result

LCP happen some time after TTFB.

Actual Result

LCP is faster than TTFB.

Internal Tracking: https://www.notion.so/sentry/GH-13040-Faster-TTFB-than-LCP-4f01c7a5ce8949f0a3b7b7ea37bb129a?pvs=4

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions