cloudflare-docs icon indicating copy to clipboard operation
cloudflare-docs copied to clipboard

SPA (Single-Page-Application) - Performance Optimizations

Open ashermyers opened this issue 1 year ago • 1 comments

Summary

This adds the Astro-SPA plugin which improves performance immensely by using client side rendering.

Screenshots (optional)

Documentation checklist

  • [ X ] The documentation style guide has been adhered to.
  • [ X ] If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • [ X ] Files which have changed name or location have been allocated redirects.

ashermyers avatar Aug 18 '24 08:08 ashermyers

In my very brief testing, this unfortunately seems to make things generally worse, with tonnes of duplicate prefetches, not to mention astro-spa seems to be quite unmaintained, with ViewTransition being a more ergonomic and modern solution.

It might make more sense to encourage Starlight to build this natively into the framework at https://github.com/withastro/starlight and then use that when it's ready?

Cherry avatar Aug 18 '24 16:08 Cherry

Based on these thoughts from @Cherry + our own investigations into ViewTransitions (which also isn't quite the way to go atm), going to close this out.

Thanks for the contribution though! If you have other ideas like this in the future, more than open to re-evaluating them then.

kodster28 avatar Sep 18 '24 15:09 kodster28