Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leaflet.css is loaded on every page #10

Open
pszafer opened this issue Jun 5, 2019 · 2 comments
Open

Leaflet.css is loaded on every page #10

pszafer opened this issue Jun 5, 2019 · 2 comments

Comments

@pszafer
Copy link

pszafer commented Jun 5, 2019

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?

@dweirich
Copy link
Owner

dweirich commented Jun 5, 2019

Hi @pszafer

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

@pszafer
Copy link
Author

pszafer commented Jun 5, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants