Skip to content

Commit 31cca2b

Browse files
committed
Resolved issue with is_lcp_statically_discoverable
1 parent a99e1f5 commit 31cca2b

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)