Lighthouse in Chrome limits maximum parallel HTTP2 connections
See original GitHub issueThis 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
- Open URL which is served via HTTP2.
- Open network panel in the devtools.
- Disable cache and reload the page.
- Open the audits panel and run any audit.
- 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:
- Created 4 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @juliquiron but this issue is not related to PSI.
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).
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.