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

Is the sequence of events here realistic? #3

Open
domenic opened this issue Jul 20, 2023 · 1 comment
Open

Is the sequence of events here realistic? #3

domenic opened this issue Jul 20, 2023 · 1 comment

Comments

@domenic
Copy link

domenic commented Jul 20, 2023

In the current code, the sequence is:

  • Intercept clicks
  • Start the prerender
  • Do a view transition on the source page (I think this might be a SPA view transition?)
  • Wait 1.5-2 seconds
  • Use location.href to navigate

I think in more realistic apps, the sequence is probably going to be something like:

That's the approach I took in https://cool-massive-appendix.glitch.me/mpa-vt/ . I'd love to see a version of that which used your beautiful demo UI and transitions!

@noamr
Copy link

noamr commented Jul 20, 2023

Yes, To @domenic's request I looked at this demo as well. I don't entirely understand the purpose of starting a same-document transition (startViewTransition). I would expect using regular links and perhaps prerendering on hover, without startViewTransition.

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