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

Explain better patterns useful in frontity such as pre-fetching #152

Closed
juanmaguitar opened this issue Jul 3, 2020 · 7 comments
Closed

Comments

@juanmaguitar
Copy link
Member

It's not the first site that I see that is not using pre-fetching, so when you click on links the content is not preloaded. Maybe it's a topic that it's worth explaining in detail?

@juanmaguitar
Copy link
Member Author

juanmaguitar commented Jul 3, 2020

@Poliuk As I understand pre-fetching is not really a feature of Frontity itself but a pattern that can easily be implemented in Frontity projects.

This "pattern" is implemented in some official themes such as twentytwenty-theme in the Link component
There's a DevRel Talk where we explain specifically this → https://www.youtube.com/watch?v=eW5xZlpcqQk&t=1073s

I was thinking of creating a specific section called "patterns" or "recipes" where we can explain things like this

What do you think?

@Poliuk
Copy link
Member

Poliuk commented Jul 3, 2020

@juanmaguitar maybe we can just use the guides section also for this

@juanmaguitar
Copy link
Member Author

It seems there's already a Feature Discussion opened to make this auto-prefetching implemented in twentytwenty-theme as part of the "official" Link component (the one you can import directly from the frontity package)

https://community.frontity.org/t/auto-prefetch-data/886

@juanmaguitar
Copy link
Member Author

maybe we can just use the guides section also for this

Yes, I think, for now, adding a new guide to explain this is enough

@michalczaplinski
Copy link
Member

@juanmaguitar Letting you know that we've merged a PR implementing the autoprefetching in the <Link /> component: frontity/frontity#518

FD: https://community.frontity.org/t/auto-prefetch-data/886

I guess this can be completed as part of #149

@juanmaguitar
Copy link
Member Author

Although there are now some built-in ways of applying pre-fetching, I still think there should be a proper explanation of "What is pre-fetching? Why it's important?"

@juanmaguitar
Copy link
Member Author

juanmaguitar commented Apr 28, 2021

We're going to create a quick guide in https://docs.frontity.org/guides with a title such as "Why a pre-fetching strategy is important and how you can easily apply it with Frontity"
https://developer.mozilla.org/en-US/docs/Web/HTTP/Link_prefetching_FAQ

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

No branches or pull requests

4 participants