DEV Community

Discussion on: The best way to load and use Google Fonts in Next.js + Tailwind

Collapse
 
andrej_gajdos profile image
Andrej Gajdos

I am getting Lighthouse warning message:

Warnings: A <link rel=preconnect> was found for "fonts.gstatic.com" but was not used by the browser. Only use preconnect for important origins that the page will certainly request.

Collapse
 
thomasledoux1 profile image
Thomas Ledoux

Can you see any requests going to fonts.gstatic.com in your network tab?
Maybe Google changes the CDN for their fonts...

Collapse
 
andrej_gajdos profile image
Andrej Gajdos • Edited

Yes, I see imgur.com/a/zAnDtoE

Thread Thread
 
thomasledoux1 profile image
Thomas Ledoux

That’s strange… not sure why it’s giving that warning then

Thread Thread
 
andrej_gajdos profile image
Andrej Gajdos

I guess Lighthouse changed something, but thanks for the blog post anyway.