Skip to content

performance: no route-level code splitting; all pages eagerly imported in App.tsx #844

Description

@Ejirowebfi

Summary

App.tsx eagerly imports every page/route component with static imports; there is no React.lazy/Suspense route-level code splitting anywhere in the frontend.

Evidence

  • frontend/src/App.tsx:17-27 statically imports Home, CreateToken, MintForm, BurnForm, TokenDashboard, TokenDetail, TokenExplorer, AdminPanel, MetadataForm, Manage, NotFound.
  • grep -rn "React.lazy\|lazy(" frontend/src → 0 matches.

This pulls heavy dependencies (stellar-sdk, qrcode.react, etc.) into the initial bundle even for users who only land on the home page.

Suggested fix

Convert route components to React.lazy + a <Suspense> fallback so each route is a separate chunk. This is a notable first-load win for a dApp whose SDK is large.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions