GoogleChrome / web-vitals

Essential metrics for a healthy site.
https://web.dev/vitals
Apache License 2.0
7.59k stars 415 forks source link

Add flag to show whether intrasite navigation #396

Open tunetheweb opened 1 year ago

tunetheweb commented 1 year ago

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 object so available for all metrics?

tunetheweb commented 1 year ago

Agreed to put in TTFB attribution model.