Connect to Google Fonts early
Tells browsers to connect to Google Fonts straight away, so text in your Google font appears sooner. Only for sites that load Google Fonts.
Before you switch it on: Only switch it on if your site already loads Google Fonts: otherwise it connects every visitor to Google for nothing.
It arrives switched off, even when you install its whole pack with "Switch on after installing".
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
Good to know
In the EU, loading fonts from Google shares visitors’ IP addresses with Google. Hosting the fonts yourself avoids that and is usually faster still.
In these packs
- More speed: More ways to load less: block styles, speculative loading, fewer scripts.