Skip to content

Is it also possible for LCP to report immediately after collection? #263

@SKNlEI

Description

@SKNlEI

LCP indicators reported timing is the page triggered click and other time, there is a situation is the user to enter the page, click on the time directly jumped the page, this time the data reported, the use of requestIdleCallback will lead to the report of the page url(use location.href get) is the page after the jump? This will affect the statistics of the index.

For example, the current page address is http://location:3000/new, click to jump to the page http://location:3000/detail, this time to trigger the LCP report, due to the use of requestIdleCallback, may be the emergence of a new page collection to play the LCP indicators, reported to the detail?

Is it also possible for LCPs to report immediately after collection?

// Send CLS and INP metrics immediately,
// because this metrics are reported when page is hidden or closed
if (['CLS', 'INP', 'LCP'].includes(measureName)) {
reportTask();
} else {
pushTask(reportTask);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions