typekit / webfontloader

Web Font Loader gives you added control when using linked fonts via @font-face.
Apache License 2.0
9.24k stars 648 forks source link

Resource Prioritization #416

Open PolGuixe opened 5 years ago

PolGuixe commented 5 years ago

Open similar here: https://github.com/escaladesports/gatsby-plugin-web-font-loader/issues/8

As per best practices: https://developers.google.com/web/fundamentals/performance/resource-prioritization?utm_source=lighthouse&utm_medium=devtools#preconnect

Would it be possible to add the rel prop in the generated link with the different options? Sometimes is required for performance optimization.

Z11 commented 4 years ago

Lighthouse is signaling an "Opportunity" to optimize this. Lighthouse is giving me this message: "Consider adding preconnect or dns-prefetch resource hints to establish early connections to important third-party origins. Learn more." Trying to see if i can manually add this in the package.