gatsby-plugin-react-leaflet
gatsby-plugin-react-leaflet copied to clipboard
Leaflet.css is loaded on every page
Hi, First, thank you for this plugin.
Your plugin load leaflet.css by default on all pages (and in the beginning). It is lowering google rank. I tried to resolve it myself, but gatsby community adviced me to fill issue here, because it is inproper behaviour.
Could you change your plugin to load css on sites where it is used?
Hi @pszafer
You can set the linkStyles
option to false if you would rather import the css from the module.
Truly, I prefer CDN, but would be nice to not have leaflet.css on every page. If hard or impossible it's ok. I'll go with import.