Skip to content

Commit

Permalink
prevent lcpOverlaySoft:false on every test for gaming metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
25prathamesh committed May 31, 2022
1 parent 9116796 commit 89e4309
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dist/performance.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ return Promise.all([getLcpElement()]).then(([lcp_elem_stats]) => {
gamingMetrics['lcpOverlayStrict'] = true;
}

gamingMetrics['lcpOverlaySoft'] = lcp_elem_stats.cover90viewport && styles['pointer-events'] == 'none';
if(lcp_elem_stats.cover90viewport && styles['pointer-events'] == 'none'){
gamingMetrics['lcpOverlaySoft'] = true;
}

if (isLcpExternalResource) {
// Check if LCP resource reference is in the raw HTML (as opposed to being injected later by JS)
Expand Down

0 comments on commit 89e4309

Please sign in to comment.