◆ Performance measurement function is enhanced
From the past, “First Paint” “First Contentful Paint” indicating the stage where content drawing started, “ First Meaningful Paint (FMP) ” indicating the point when a meaningful screen is displayed, and the user can operate Indicators such as “Time to Interactive” have been used.
In reality, however, it is quite questionable whether FMP represents the moment when content that is really meaningful is read, and there was a problem that the page speed could not be measured accurately. Chrome 77 introduces a new indicator ' Large Contentful Paint (LCP) ', which can represent the moment when the largest element occupying the displayed area (viewport) is read. According to Google, LCP can measure the moment when the main content is read more accurately than FMP.
Since the “object that occupies the largest part of the viewport” changes as the page rendering progresses, it is necessary to devise a way to measure LCP. The following code saves the rendering time in the 'lcp' variable each time an LCP event occurs.
By using the “visibilitychange” event and sending the saved value to Google Analytics just before the page is switched or closed, you can measure accurately.
◆ Added the ability to edit form data when submitted
◆ Added a function to delay the loading of unnecessary content
Chrome 77 includes 52 security fixes in addition to the above.
in Software, Posted by log1d_ts