#Astrojs ClientRouter is very slow
1 messages · Page 1 of 1 (latest)
Hi @marsh sundial. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
I apologize, but I don't have any information in the provided knowledge sources that suggests Astro's ClientRouter is slow compared to other frameworks' routers. In fact, Astro is designed with performance in mind, including its client-side routing capabilities.
Astro's ClientRouter is built to provide fast page transitions and improved performance. Here are some key points about Astro's ClientRouter based on the available information:
-
Astro uses a technique called "view transitions" for smooth page navigation. This leverages the browser's View Transitions API for efficient updates View transitions.
-
The ClientRouter is optimized to only update necessary parts of the page, preserving elements marked with
transition:persistand efficiently swapping content View transitions. -
Astro's design principles include being "Fast by default" and "Content-driven", which aim to provide excellent performance for content-rich websites Why Astro?.
-
Astro allows for prefetching of links, which can significantly improve navigation speed Prefetch Options.
If you're experiencing slow performance with Astro's ClientRouter, it might be due to specific implementation details or configuration issues in your project. I'd recommend checking your project setup, ensuring you're following Astro's best practices, and possibly reaching out to the Astro community for specific troubleshooting if the problem persists.
For optimal performance, make sure you're using the latest version of Astro and consider utilizing features like link prefetching to enhance navigation speed.
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
@marsh sundial Kapa.ai is still learning and improving, please let me know how I did by reacting below.