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

prerender option #118

Open
adrelanos opened this issue Mar 13, 2023 · 2 comments
Open

prerender option #118

adrelanos opened this issue Mar 13, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@adrelanos
Copy link

Did you or anyone ever consider/test prerender instead of preload?

Perhaps would be worth adding as an option?

  linkElement.rel = 'prefetch'

would have to become

  linkElement.rel = 'prerender'

if I understand that right.

https://developer.mozilla.org/en-US/docs/Glossary/Prerender

@kurtextrem
Copy link

I've added it to my fork: https://github.com/kurtextrem/instant.page. I'm also trying to document all the caveats of prerendering or what you need to take into account when prerendering things.

@dieulot
Copy link
Member

dieulot commented Mar 21, 2023

I’d like to eventually add it, along with other preloading mechanisms.

Due to prerender being much more aggressive that prefetch on a user’s and server’s connection though, I want to make a server-side tool that can measure the effects of the different preloading mechanisms happening on different sets of device/network configurations, and then use the right one automatically.

Stay tuned but don’t hold your breath. You can indeed use @kurtextrem’s fork if you’d like to see how it works out for you.

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

No branches or pull requests

3 participants