You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For LCP, however, the entries array was populated with all entries reported by the underlying Largest Contentful Paint API, which may be helpful in some cases, but also still requires the developer to know that some of those entries are not relevant to the current metric value, so it could lead to bugs.
Also, for all of the other metrics reported by this library, the entries array only contains entries that are relevant to the metric value. LCP is the exception.
For the sake of consistency as well as to help prevent cases where a developer might accidentally infer debug information from an irrelevant LCP entry, I think it makes the most sense to only report the final one in the entries array. Developers who want access to all entries can always just use the native API to get them.
The text was updated successfully, but these errors were encountered:
The intention of the
Metric.entries
array was that it could be used to create and report additional debug information that would allow developers to identify common real-user problems in their aggregate data.For LCP, however, the
entries
array was populated with all entries reported by the underlying Largest Contentful Paint API, which may be helpful in some cases, but also still requires the developer to know that some of those entries are not relevant to the current metric value, so it could lead to bugs.Also, for all of the other metrics reported by this library, the
entries
array only contains entries that are relevant to the metric value. LCP is the exception.For the sake of consistency as well as to help prevent cases where a developer might accidentally infer debug information from an irrelevant LCP entry, I think it makes the most sense to only report the final one in the entries array. Developers who want access to all entries can always just use the native API to get them.
The text was updated successfully, but these errors were encountered: