lighthouse icon indicating copy to clipboard operation
lighthouse copied to clipboard

Google Pagespeed Insights downloading all video sources with different formats (Avoid enormous network payloads)

Open masiorama opened this issue 4 years ago • 12 comments

Provide the steps to reproduce

  1. Run https://developers.google.com/speed/pagespeed/insights/ on https://www.masiorama.it

Inside the page there is something like:

<video loop autoplay muted>
        <source src="[path]_720.mp4" type="video/mp4" media="all and (max-width: 767px)">
	<source src="[path]_720.webm" type="video/webm" media="all and (max-width: 767px)">
	<source src="[path]_720.ogv" type="video/ogg">
	<source src="[path]_FHD.mp4" type="video/mp4">
	<source src="[path]_FHD.webm" type="video/webm">
	<source src="[path]_FHD.ogv" type="video/ogg">
</video>

What is the current behavior?

It downloads all the video sources formats and it triggers the "Avoid enormous network payloads" recommendation. https://prnt.sc/uflmrm

What is the expected behavior?

It should skip all formats except for one. There should be no "Avoid enormous network payloads" message, unless needed.

Related issues #8847

Googlers: b/202070447

masiorama avatar Sep 11 '20 14:09 masiorama

Same here, seems like the issue appears only in the online version of Lighthouse. The Chrome extension works correctly.

online version: 6.3.0 
chrome version: 6.4.0

wittich avatar Feb 09 '21 13:02 wittich

@paulirish any status of this issue? Is there a way to help to debug it?

wittich avatar Feb 17 '21 15:02 wittich

Any news on this issue at all? still experiencing it

geeworthington avatar Mar 18 '21 14:03 geeworthington

I confirm this is still an issue.

masiorama avatar Sep 02 '21 08:09 masiorama

Any updates on this issue? Can confirm the same issue with mp4/webm

mike-at-redspace avatar Sep 23 '21 17:09 mike-at-redspace

+1 on this. https://ibb.co/6H6VpbF - reference https://myneral-labs.pages.dev

bndrgroup avatar Oct 07 '21 10:10 bndrgroup

Sharing some details from our internal bug tracker: PSI/LR doesn't have many common video codecs, so the behavior when it comes across them is to fail loading and (if using source elements) try the next until one succeeds. If all fail, I believe Failed to load resource: net::ERR_CONNECTION_FAILED occurs.

connorjclark avatar Feb 09 '22 01:02 connorjclark

+1. Any page with a video with multiple sources will get "Avoid enormous network payloads" and a terrible score.

MarioAda avatar May 28 '23 02:05 MarioAda

We also have the issue on https://belambra.fr

Lighthouse is reporting the double WebM + MP4 download, which a real browser doesn't.

nhoizey avatar Oct 23 '23 09:10 nhoizey

+1. Any page with a video will get "Avoid enormous network payloads" and a terrible score.

abooo96 avatar Dec 22 '23 18:12 abooo96

+1. A simple MP4 video causes net::ERR_CONNECTION_FAILED for me :-(

rgpublic avatar Jul 24 '24 16:07 rgpublic