Skip to content

Commit 420b19b

Browse files
Resolved issue with is_lcp_statically_discoverable (#148)
Co-authored-by: Barry Pollard <[email protected]>
1 parent 929e2d3 commit 420b19b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/performance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ function getRawLcpElement(rawDoc, lcpUrl) {
306306
src = i.getAttribute('href');
307307
}
308308

309-
return src == lcpUrl;
309+
return new URL(src, location.href).href == lcpUrl;
310310
});
311311

312312
// lcp_elem_stats will match the img, not the source.

0 commit comments

Comments
 (0)