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

Reduce bandwidth usage when running bfcache check #16318

Open
mattzeunert opened this issue Jan 31, 2025 · 1 comment
Open

Reduce bandwidth usage when running bfcache check #16318

mattzeunert opened this issue Jan 31, 2025 · 1 comment
Assignees

Comments

@mattzeunert
Copy link
Contributor

We've been looking at reducing our bandwidth costs when running Lighthouse recently. If I understand correctly, running Lighthouse currently opens the tested page 1 or 2 times:

  1. For the main navigation
  2. For the bfcache check, if the page can't be served from the bf cache

Is it possible to block e.g. image requests for the bf cache navigation? And maybe also others like JavaScript? Since the point is just to check if the page can be served from the bfcache. Doing that would also reduce CPU load.

Not sure if there are any reasons to load the page in full. Like bfcache checks for iframes maybe?

I can submit a PR for this if there's interest.

@mattzeunert mattzeunert changed the title Reduce bandwidth usage when runnin bfcache check Reduce bandwidth usage when running bfcache check Jan 31, 2025
@adamraine
Copy link
Member

Not a bad idea, Lighthouse used to test the page with network requests blocked to verify offline behavior I believe. I wonder if we could get away with blocking all network activity. Can maybe disable JS too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants