Quickly add a <link rel="preconnect">
tag for every specified domain.
npm install --save gatsby-plugin-preconnect
It simply adds a <link rel="preconnect" href="https://example.com">
to the page (see the
Resource Prioritization - Preconnect
guide).
// In your gatsby-config.js
plugins: [
{
resolve: "gatsby-plugin-preconnect",
options: {
domains: [
"https://foo.com",
"https://bar.com"
]
}
}
]
PR or issues are welcome π
- if you want to work on the plugin sources, remember that you need to
npm run build
on the root then, in every test project, you need to runnpm run plugin:link
to locally use it
Thanks goes to these wonderful people (emoji key):
Stefano Magni π» π π | Dugagjin Lashi π» |
This project follows the all-contributors specification. Contributions of any kind welcome!