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

All the MD files are preloaded on site load #109

Open
xbaha opened this issue May 8, 2021 · 1 comment
Open

All the MD files are preloaded on site load #109

xbaha opened this issue May 8, 2021 · 1 comment

Comments

@xbaha
Copy link

xbaha commented May 8, 2021

This works if the site is small, but if I want to have long texts or even books, this is not going to be smooth.

is there any way to load the MD files only when I click on them?

thank you.

@praveenweb
Copy link
Member

@xbaha - This happens due to the way Gatsby pre-loading same domain links on the page that use the <Link> tag. One way to avoid this would be to make them <a href> but you will lose the benefits of a Single Page Application. The other approach would be to disable Javascript with a gatsby-plugin (unless you are using any specific MDX features).

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