I'm using lighthouse to measure page performance and I noticed, even if i use a low resolution background image and load the high one with javascript it still affects the larget contentful paint on lighthouse even when i wait until page is fully loaded... Is there something am i missing?
window.onload = function () {
const header = document.querySelector('.header');
header.style.backgroundImage =
'url(assets/img/the-image.webp)';
};
here is the link to the page. The low res image is hidden behind an overlay while the high res is being loaded
