Skip to content

Feature : Feat/lazy loading optimization#358

Open
JayRathore10 wants to merge 3 commits into
GitMetricsLab:mainfrom
JayRathore10:feat/lazy-loading-optimization
Open

Feature : Feat/lazy loading optimization#358
JayRathore10 wants to merge 3 commits into
GitMetricsLab:mainfrom
JayRathore10:feat/lazy-loading-optimization

Conversation

@JayRathore10
Copy link
Copy Markdown

✨ Added Feature: Optimize Bundle Size with Lazy Loading

📌 Related Issue

Closes #357


📝 Description

This PR improves frontend performance by implementing lazy loading and code splitting for heavy components/pages using React.lazy() and Suspense.

The application previously generated a large production bundle:

dist/assets/index-C9N3at7P.js 670.53 kB │ gzip: 215.05 kB

This optimization helps reduce the initial bundle size and improves loading performance.


🚀 Changes Made

  • Added lazy imports for heavy pages/components
  • Implemented Suspense fallback loaders
  • Reduced initial JavaScript bundle size
  • Improved frontend performance and scalability
  • Reduced Vite chunk size warnings

🧪 Testing

  • ✅ Application builds successfully using:
bun run build
  • ✅ All routes/pages load correctly
  • ✅ No runtime errors after lazy loading implementation

📸 Screenshots

Add screenshots or Lighthouse performance comparison here if applicable.


🛠 Tech Stack

  • React
  • Vite
  • TypeScript

🏷️ Open Source Context

This PR is submitted as part of GSSoC (GirlScript Summer of Code) contribution.

👤 Contributor Profile

GSSoC Profile: https://gssoc.girlscript.org/profile/e47b2f4a-f3e9-4cb4-97b5-ddd8cb15a1e9

@netlify
Copy link
Copy Markdown

netlify Bot commented May 21, 2026

Deploy Preview for github-spy ready!

Name Link
🔨 Latest commit 594af56
🔍 Latest deploy log https://app.netlify.com/projects/github-spy/deploys/6a0ea03a0c04470008a8ddf9
😎 Deploy Preview https://deploy-preview-358--github-spy.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 21, 2026

Warning

Rate limit exceeded

@JayRathore10 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 58 minutes and 45 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f0291e5b-56c3-4b26-af98-12b0a0ea8d39

📥 Commits

Reviewing files that changed from the base of the PR and between 9d34c19 and 594af56.

📒 Files selected for processing (3)
  • CONTRIBUTING.md
  • src/Routes/Router.tsx
  • src/pages/404.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🚀 Feature: Optimize Bundle Size Using Lazy Loading and Code Splitting

1 participant