custom-metrics icon indicating copy to clipboard operation
custom-metrics copied to clipboard

Resolved issue with is_lcp_statically_discoverable

Open kevinfarrugia opened this issue 5 months ago • 1 comments

The raw HTML (from response_body) uses relative URLs for images, for example "/static/img/logo.png", while calling .src on a document with a location, gives you absolute URLs, such as https://happymod.com/static/img/logo.png.

Consequently, when checking for the LCP element, we need to wrap the src with new URL to get an absolute URL.

Test websites:

  • https://happymod.com/
  • https://httparchive.org/

kevinfarrugia avatar Sep 25 '24 12:09 kevinfarrugia