GoogleChrome / GoogleChrome/web-vitals

Add flag to show whether intrasite navigation

Open
#396 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8.6k
Forks
530
Avg merge
3h 4m
Merged PRs (30d)
3

Description

If the page is an intra-site navigation, then it likely has different performance characteristics to a cross site navigation which may have a higher TTFB and/or less objects cached.

This could be measured with `new URL(document.referrer).origin === new URL(performance.getEntriesByType("navigation")[0].name;)`

Where should this be exposed? In the TTFB attribution model?
Or as general additions to the [Metric](https://github.com/GoogleChrome/web-vitals#metric) object so available for all metrics?

Contributor guide

Open the contributing guide

Research direction

Start with the Metric object documentation and the TTFB attribution model named in the issue, then review the proposed document.referrer and navigation performance-entry check. Resolve whether the flag belongs in TTFB attribution or all Metric objects; done requires a decided exposure and defined behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.