GoogleChrome / GoogleChrome/lighthouse
LH: Capture preconnect limitations
- Dominant language
- JavaScript
- Stars
- 30.8k
- Forks
- 9.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 19
Description
**tl;dr Developers should include preconnects in the order they're to be utilized**
Chrome currently places a limit of 3 in-flight preconnects so developers don't need to compute how many hosts to preconnect to. This means developers connecting to a large number of hosts is WAI, but I don't believe most know the order of the preconnect origins is kinda important.
It may be worth Lighthouse include text in our docs to make it clear Chrome doesn't preconnect to all origins at the same time. So, developers should include preconnects in the order they are expected to be utilized.
Initially marking as a docs issue. We may want to factor this into the preconnect audit text if it doesn't get too wordy... :)
Confidence in this: confirmed with Tarun and Yoav
Source: https://cs.chromium.org/chromium/src/chrome/browser/predictors/preconnect_manager.h?rcl=226607d28a8085ffa3199f66954ee14c3e0736fb&l=138
Related fun tweet:
https://twitter.com/yoavweiss/status/1197551558071898113
Contributor guide
Assessment
This issue has not been assessed yet.