Browser learns late which other hosts a page needs (preconnect)
OptionalQuick fix
These pages load stylesheets or scripts that block rendering from other hosts, without a preconnect hint for them.
Why it matters
Before the browser can fetch a file from another host it has to look up the address and negotiate an encrypted connection. On a phone that costs 100 to 500 milliseconds per host. A preconnect hint lets the browser do it while it is still reading the HTML.
How to fix it
- 1
Add <link rel="preconnect" href="https://host"> to the head for each host listed, at most three or four in total.
- 2
For font hosts add the crossorigin attribute as well.
- 3
Better still, serve these files from your own domain.
- How serious is it?
- Notice
- Opportunities and things to keep an eye on.
- How much work is it?
- Quick fix
- Usually minutes of work.
Further reading: web.dev: Establish network connections early
Does your site have this issue?
Check a page for free, or create an account to test your whole website.