Skip to content

perf: implement lazy loading for heavy components and optimize bundle…#150

Merged
RUKAYAT-CODER merged 6 commits into
rinafcode:mainfrom
AbuJulaybeeb:feat/116-bundle-optimization
Apr 23, 2026
Merged

perf: implement lazy loading for heavy components and optimize bundle…#150
RUKAYAT-CODER merged 6 commits into
rinafcode:mainfrom
AbuJulaybeeb:feat/116-bundle-optimization

Conversation

@AbuJulaybeeb
Copy link
Copy Markdown
Contributor

Closes #116

This PR addresses bundle size issues by implementing route-based and component-level code splitting using Next.js dynamic() imports.

Key changes:

Lazy loaded all dashboard widgets in DashboardGrid.
Introduced and lazy-loaded a RevenueChart (Recharts) in RecentSalesWidget.
Lazy loaded RichContentEditor (Tiptap) on the main editor page.
Lazy loaded CodeChallengeQuestion (Monaco) in the quiz system.
Created a /video-player-demo page demonstrating lazy loading of the custom VideoPlayer.
Ensured all changes pass strict ESLint/Prettier checks and TypeScript validation.
Verification:

Successfully ran npm run build with no errors.
Confirmed bundle splitting by inspecting the build output and chunk generation.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 23, 2026

@AbuJulaybeeb Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@AbuJulaybeeb AbuJulaybeeb force-pushed the feat/116-bundle-optimization branch from 85daa49 to 006d68f Compare April 23, 2026 05:35
@Agbasimere Agbasimere mentioned this pull request Apr 23, 2026
3 tasks
@RUKAYAT-CODER
Copy link
Copy Markdown
Contributor

kindly resolve conflict

@RUKAYAT-CODER RUKAYAT-CODER merged commit 2115117 into rinafcode:main Apr 23, 2026
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bundle Size Optimization

2 participants