question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lighthouse in Chrome limits maximum parallel HTTP2 connections

See original GitHub issue

This baffled me for quite a while and I think I was able to pin it down to lighthouse being the problem. Also, I tested this multiple times and it seems to be reproducable.

Thanks for the awesome work on lighthouse!

Steps

  1. Open URL which is served via HTTP2.
  2. Open network panel in the devtools.
  3. Disable cache and reload the page.
  4. Open the audits panel and run any audit.
  5. Run 1 to 3 again.

What is the current behavior?

  • ad 3.) The network waterfall diagram shows quite all resources being downloaded in parallel. (HTTP2 multiplexing works)
  • ad 4.) When inspecting the trace of the audit, maximum parallel connections seem limited to 6 or something. (HTTP2 multiplexing not working?)
  • ad 5.) The network waterfall diagram shows parallel connections to all resources limited to 6 or something, even after the audit was finished/closed.

What is the expected behavior?

  • ad 4.) I expect lighthouse to not limit parallel connections on HTTP2 for the audit.
  • ad 5.) I expect Chrome to download all resources in parallel, but it seems the parallel connection restriction introduced by running a lighthouse audit is still in place.

Environment Information

Lighthouse: 4.2.0
Chrome: 74.0.3729.108 (Official Build) (64-bit) 
OS: Windows 10 Pro 1809 (64-bit)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
patrickhulcecommented, Aug 15, 2019

Thanks @juliquiron but this issue is not related to PSI.

0reactions
paulirishcommented, Sep 29, 2020

I can’t reproduce a difference in download behavior after running Lighthouse.

I tried something else out… in a fresh chrome profile i used chrome://net-export/ and then loaded https://http2.akamai.com/demo (and sometimes just https://http2.akamai.com/demo/h2_demo_frame.html)

I see a few things. I see 6 sockets opened to h1 and just 2 opened to h2. (I haven’t run Lighthouse at all, so this is conceivably default behavior).

image

I’m also assuming you weren’t using applied throttling, because it’s just too disruptive for this sort of analysis.

Given that, though… I imagine it was a weird situation of visualization.

Will close for now.

If anyone can provide a URL where I can test this, I’d happily reopen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blocking: The Web Performance Villain - The Blue Triangle Blog
While many do not realize this, there is in fact a limit on the number of parallel connections that a browser can make...
Read more >
Using Lighthouse to improve page load performance
Lighthouse is an automated tool for improving the quality of your site. You give it a URL, and it provides a list of...
Read more >
Now serving over http/2 - Performance obsessive web developer
A big http/2 advantage is that you will not run into http 1.1's limits on the maximum number of parallel connections to a...
Read more >
Network issues guide - Microsoft Edge Development
Too many requests are being made on a single domain. On HTTP/1.0 or HTTP/1.1 connections, Microsoft Edge allows a maximum of six simultaneous...
Read more >
Is the per-host connection limit raised with HTTP/2?
Browsers impose a per-domain limit of 6-8 connections when using HTTP/1.1, depending on the browser implementation.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found