Skip to content

[FEATURE] Performance Improvements for SEO & Core Web Vitals #100

Description

@Khushi5155

📖 Description

Website performance directly affects SEO, user experience, and Core Web Vitals scores.
This issue focuses on auditing and improving performance by reducing bundle size, optimizing loading, and adding preconnect hints for external resources.


📌 Parent Issue

Part of #68 – SEO Improvements: Structured Data, Missing Pages & Performance


🎯 Scope of Work

  1. Audit Core Web Vitals

    • Measure Largest Contentful Paint (LCP)
    • Measure First Input Delay (FID)
    • Measure Cumulative Layout Shift (CLS)
    • Tools: Google PageSpeed Insights, Lighthouse
  2. Minimize bundle size

    • Analyze JS/CSS bundles
    • Remove unused dependencies or code
    • Use dynamic imports / code splitting where possible
  3. Add preconnect hints

    • Preconnect to frequently used external resources (CDNs, APIs)
    • Example:
      <link rel="preconnect" href="https://fonts.googleapis.com" />
      <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
  4. Additional optimizations

    • Ensure efficient image formats (WebP)
    • Enable caching for static assets
    • Lazy-load non-critical scripts or components

✅ Acceptance Criteria

  • Core Web Vitals scores meet or improve:
    • LCP < 2.5s
    • FID < 100ms
    • CLS < 0.1
  • Bundle size reduced or optimized without breaking functionality
  • Preconnect hints added for major external resources
  • No console warnings or network errors
  • Lighthouse/Pagespeed audit shows improvement

🛠️ Implementation Notes

  • Use tools like Vite Bundle Analyzer or Webpack Bundle Analyzer for size reduction
  • Keep optimizations modular and test each change to prevent regressions
  • Ensure preconnect hints are added only for necessary external resources

🧪 Testing Checklist

  • Run Lighthouse performance audit before and after changes
  • Verify Core Web Vitals metrics
  • Test page load speed and network requests
  • Ensure all site features still work after optimizations
  • Check console for errors or warnings

🏷️ Labels

frontend, seo, performance, swoc2026, hard


🙌 Contribution Notes

  • Focus on performance improvements only
  • Avoid modifying SEO metadata or structured data (handled in separate issues)
  • Document all major changes to scripts, bundles, or network optimizations in the PR

Metadata

Metadata

Assignees

Labels

Easy20 PointsSWOCIssue available for contributors participating in Social Winter of Code (SWOC).SWoC26Social Winter of Code 2026enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions