gatsby-plugin-react-leaflet icon indicating copy to clipboard operation
gatsby-plugin-react-leaflet copied to clipboard

Leaflet.css is loaded on every page

Open pszafer opened this issue 5 years ago • 2 comments

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?

pszafer avatar Jun 05 '19 12:06 pszafer

Hi @pszafer

You can set the linkStyles option to false if you would rather import the css from the module.

dweirich avatar Jun 05 '19 17:06 dweirich

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.

pszafer avatar Jun 05 '19 17:06 pszafer