Why is this happening?

Posted in: Newsmag
Post count: 24

I want to see why newsmag does this, as you can see what pagepeed says:

Max DOM Depth Mercados de Pascua 2023 en Praga
Mercados de Pascua 2023 en Praga

1) img width=”180″ height=”135″
2) src=”https://www.viviendopraga.com/wp-content/uploads/2023/03/Mercados-de-Pascu…”
3) srcset=”https://www.viviendopraga.com/wp-content/uploads/2023/03/Mercados-de-Pascu…”
4) sizes=”(max-width: 180px) 100vw, 180px”

There are three questions about this.
1) Why repeat the image size issue twice?
2) Why repeat the url of the image twice?
3) This is what makes the Sun longer?
Thank you very much again

Post count: 35449

Hi,
Indeed the image appears twice in the source code, this is because the first time is set using the src and the second time is with srcset for responsive images, but this should use the same url.
Thank you!

Post count: 24

Hello again Calin. Regarding this, maybe I’m confused.
The question is:
Does this make the doom excessive in tests?
Thank you very much again Calin

Post count: 35449

Hi,
Somewhat yes, they contribute to the DOM because the content of the page grows – https://i.imgur.com/26uzwIW.png
Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newsmag’ is closed to new topics and replies.