lighthouse
lighthouse copied to clipboard
Google Pagespeed Insights downloading all video sources with different formats (Avoid enormous network payloads)
Provide the steps to reproduce
- 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
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
@paulirish any status of this issue? Is there a way to help to debug it?
Any news on this issue at all? still experiencing it
I confirm this is still an issue.
Any updates on this issue? Can confirm the same issue with mp4/webm
+1 on this. https://ibb.co/6H6VpbF - reference https://myneral-labs.pages.dev
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.
+1. Any page with a video with multiple sources will get "Avoid enormous network payloads" and a terrible score.
We also have the issue on https://belambra.fr
Lighthouse is reporting the double WebM + MP4 download, which a real browser doesn't.
+1. Any page with a video will get "Avoid enormous network payloads" and a terrible score.
+1. A simple MP4 video causes net::ERR_CONNECTION_FAILED for me :-(