docs: refine dynamic page hierarchy (#511)

This commit is contained in:
Valerio Ageno
2025-02-05 17:45:12 +01:00
committed by GitHub
parent 79d4aff758
commit fb29a26246
2 changed files with 6 additions and 4 deletions
@@ -190,13 +190,13 @@ export const sidebarElements: Array<SidebarElement> = [
children: [
{
type: 'element',
label: 'dynamic',
href: '/documentation/functions/dynamic',
label: 'useRouter',
href: '/documentation/functions/use-router',
},
{
type: 'element',
label: 'useRouter',
href: '/documentation/functions/use-router',
label: 'dynamic',
href: '/documentation/functions/dynamic',
},
],
},
@@ -12,6 +12,8 @@ import Breadcrumbs from '@/components/Breadcrumbs'
# dynamic
## Overview
Tuono supports lazy loading through the `dynamic` function, which uses `Suspense` and `React.lazy` to load components lazily with fallback support.
Lazy loading helps reduce the amount of JavaScript required for the initial page render by deferring the loading of components and libraries until they are needed.