• EnglishEspañol日本語한국어Português
  • Log inStart now

Browser agent v1163

February 5, 2020

New Features

With this release of the New Relic Browser agent, we now support new metrics, largestContentfulPaint and windowUnload, in our PageViewTiming event. With the release of Chrome 77, Google now reports a metric called largest contentful paint. This metric, LCP for short, reports the render time of the largest content element visible in the viewport, along with the element size and element Id values. This new metric comes after extensive research by Google. They found that the more accurate way to measure when the main content of a page is loaded is to look at when the largest element was rendered. Largest Contentful Paint is replacing First Meaningful Paint (which is now a deprecated metric) in Google Lighthouse as well. Additionally, LCP is considered the "field" equivalent to the Speed Index "lab" metric.

Largest Contentful Paint is updated over time, but captured and reported when one of these three criteria is met:

  • A user interacts with the page, thus potentially changing the content in the viewport
  • The user closes the page (the window unload event fires)
  • If no other other interaction happens, and we have received a LCP value, we will report that value after 1 minute has passed
  • If we have not received a value, and no interaction has occurred after a minute, we will simply wait until we have received any value for LCP. This would only occur for very high values (> 1minute) of LCP.

In addition to this metric, we added the windowUnload event to PageViewTiming, so you can see when your users are most commonly closing their sessions. This metric is supported by all browsers on both desktop and mobile devices.

For more information about these new metrics, supporting attributes and browser compatibility, visit our PageViewTiming documentation.

Issue Fixes

  • Fix to resolve repeated InvalidStateError errors associated with IE11 and some Edge versions.

How to upgrade

To upgrade your agent to the latest version, see Upgrade the Browser agent.

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.