Replies: 1 comment 1 reply
-
To answer your questions:
To me it sounds like you want to use https://turbo.hotwired.dev/ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, I've recently been critical of how my Nuxt blog site works, and I specifically found an issue with how the routing works, when I navigate from my home page to my blog page, I either have to block for a while or suspend despite my blogs page already being prerendered, so I took it upon myself to write a rudimentary MPA router just as a proof of concept that this might be feasible and a good idea. I write this as a very minimal solution that works for a vanilla static site, and it works as you would expect:
However, this solution isnt drop in for Vue as I assume I need to hydrate the pages somehow, but I believe I cannot go deeper in a component and force a page hydration. I think I like this solution, but I want to hear what others think. Specifically, I want to know a few things:
I think this solution is better than an SPA as it leverages the pregenerated pages, like a non-routed MPA that uses just traditional anchor tags, but doesnt have the drawbacks of traditional MPAs like FOUC on first page load, but I'd like to hear what others think. Furthermore, if we do consider this, I think we should discuss how we might handle things like tracking page load progress, how we might toggle this in config, and anything else that might impact vue-router.
Beta Was this translation helpful? Give feedback.
All reactions