[DEPRECATED] Gatsby plugin to add the crossorigin attribute to every <link rel="preload"> tag
This package has been deprecated. Use at your own risk. See https://github.com/NoriSte/gatsby-plugin-preload-link-crossorigin/issues/369
Quickly add the crossorigin
attribute to every <link rel="preload">
tag to turn off the Lighthouse alert.
npm install --save gatsby-plugin-preload-link-crossorigin
It simply turn off the
A preload was found for "http://localhost:9000/component---src-pages-index-js-5338f8c9c4237b27607e.js" but was not used by the browser. Check that you are using the
crossorigin
attribute properly.
Lighthouse alert.
BE AWARE that doesn't guarantee a higher Lighthouse score! It's up to you to analyze whether or not it improves your site performance!
// In your gatsby-config.js
plugins: [
'gatsby-plugin-preload-link-crossorigin',
]
PR or issues are welcome 👋
npm run build
on the rootnpm run plugin:link
to locally use itThanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!