Summary
Lazy-load the sale history chart so Recharts is not required before the item page shell renders.
Evidence
SaleHistoryChart imports Recharts statically at apps/web/src/components/SaleHistoryChart.tsx:2.
SaleHistoryView imports the chart statically at apps/web/src/components/SaleHistoryView.tsx:5.
Expected Impact
Medium for cold item-detail loads.
Implementation Notes
Use React.lazy for SaleHistoryChart or configure Vite manual chunks for Recharts.
Acceptance Criteria
- Item detail page shell can render before the chart library chunk loads.
- Chart still renders behind a loading fallback.
Summary
Lazy-load the sale history chart so Recharts is not required before the item page shell renders.
Evidence
SaleHistoryChartimports Recharts statically atapps/web/src/components/SaleHistoryChart.tsx:2.SaleHistoryViewimports the chart statically atapps/web/src/components/SaleHistoryView.tsx:5.Expected Impact
Medium for cold item-detail loads.
Implementation Notes
Use
React.lazyforSaleHistoryChartor configure Vite manual chunks for Recharts.Acceptance Criteria