SurfSense/surfsense_web/app/(home)
guangyang1206 dcafa364ff feat(perf): add loading.tsx skeletons for async marketing routes
Fixes #1243

Add sibling loading.tsx files for all 6 async route segments that were
missing instant loading UI, causing blank screens during navigation on
slow networks or cold caches.

Routes covered:
- /docs/[[...slug]]   — awaits getDocPage + MDX body
- /blog               — awaits source.getPages()
- /blog/[slug]        — awaits params + MDX body
- /changelog          — awaits source.getPages()
- /free               — awaits getModels() fetch
- /free/[model_slug]  — awaits Promise.all([getModel, getAllModels])

Each loading.tsx is a Server Component returning an animate-pulse
skeleton that matches its route's layout (header, content area,
grid/table/timeline as appropriate). Uses the Skeleton component and
Tailwind classes already present in the project.

Follows the pattern established in:
- app/dashboard/[search_space_id]/logs/loading.tsx
- app/dashboard/[search_space_id]/new-chat/loading.tsx
2026-04-29 12:34:13 +08:00
..
announcements feat(announcements): add SEO metadata via server layout.tsx 2026-04-24 15:58:20 -07:00
blog feat(perf): add loading.tsx skeletons for async marketing routes 2026-04-29 12:34:13 +08:00
changelog feat(perf): add loading.tsx skeletons for async marketing routes 2026-04-29 12:34:13 +08:00
contact feat: add processing mode support for document uploads and ETL pipeline, improded error handling ux 2026-04-14 21:26:00 -07:00
free feat(perf): add loading.tsx skeletons for async marketing routes 2026-04-29 12:34:13 +08:00
login feat: add maxLength constraints to auth and settings form inputs 2026-04-16 22:33:01 +08:00
pricing cloud: added openrouter integration with global configs 2026-04-15 23:46:29 -07:00
privacy feat: enhance SurfSense with new skills, blog section, and improve SEO metadata 2026-04-11 23:38:12 -07:00
register feat: add maxLength constraints to auth and settings form inputs 2026-04-16 22:33:01 +08:00
terms feat: enhance SurfSense with new skills, blog section, and improve SEO metadata 2026-04-11 23:38:12 -07:00
layout.tsx feat: no login experience and prem tokens 2026-04-15 17:02:00 -07:00
page.tsx fix(a11y): remove nested <main> landmarks under (home) layout 2026-04-16 22:30:55 +08:00