UI Foundations Kit makes tradeoffs in what it favors. Being designed for SaaS apps and focused on design over implemenation details, it is setup to be easily changed to fit your needs. This means that some optimizations are not included by default, but can be added as needed.Documentation Index
Fetch the complete documentation index at: https://docs.uifoundations.com/llms.txt
Use this file to discover all available pages before exploring further.
Lazy Loading Routes + Code Splitting
You can improve performance in SPA frameworks like Vite by lazy loading your routes (though Next.js does code split/lazy load routes by default). This means that the code for a route is only loaded when the user navigates to that route. This can be done using the built inReact.lazy and Suspense components.
Change:
Suspense component: