Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
masiorama opened this issue Sep 11, 2020 · 10 comments
Assignees
Labels

Comments

@masiorama
Copy link

masiorama commented Sep 11, 2020

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

@wittich
Copy link

wittich commented Feb 9, 2021

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
Copy link

wittich commented Feb 17, 2021

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

@geeworthington
Copy link

Any news on this issue at all? still experiencing it

@masiorama
Copy link
Author

I confirm this is still an issue.

@mike-at-redspace
Copy link

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

@connorjclark connorjclark assigned connorjclark and unassigned Beytoven Oct 5, 2021
@bndrgroup
Copy link

bndrgroup commented Oct 7, 2021

@connorjclark
Copy link
Collaborator

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.

@MarioAda
Copy link

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

@nhoizey
Copy link

nhoizey commented Oct 23, 2023

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

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

@abooo96
Copy link

abooo96 commented Dec 22, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels