Skip to content

[FEATURE] Image Optimization & Accessibility Improvements #99

Description

@Khushi5155

📖 Description

Optimizing images not only improves page load performance but also enhances SEO and accessibility.
This issue focuses on adding alt text, converting images to WebP where possible, and implementing lazy loading across the Edulume platform.


📌 Parent Issue

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


🎯 Scope of Work

  1. Add alt text to all images

    • Ensure every <img> tag has descriptive alt text
    • For decorative images, use alt=""
    • File locations:
      client/src/assets/
      client/src/components/
      client/src/pages/
      client/public/
      
  2. Convert images to WebP

    • Optimize images for faster loading
    • Prefer WebP format where supported while keeping fallback PNG/JPG
  3. Implement lazy loading

    • For non-critical images (below the fold), use loading="lazy"
    • Ensure above-the-fold images load normally
  4. Accessibility review

    • Ensure images with functional meaning have meaningful alt text
    • Avoid missing alt attributes
    • Check contrast and readability of images with text overlays (OG images, banners)

✅ Acceptance Criteria

  • Every image has appropriate alt text
  • Images are optimized (WebP preferred, smaller file sizes)
  • Lazy loading works for below-the-fold images
  • No accessibility violations related to images (check with browser DevTools or Lighthouse)
  • Page performance scores improve or remain stable

🛠️ Implementation Notes

  • Use the following tools for optimization:
    • Squoosh for converting images to WebP
    • Tailwind or standard React props for loading="lazy"
  • Keep naming consistent with existing assets
  • Avoid breaking image references after conversion

🧪 Testing Checklist

  • Inspect <img> tags for correct alt attributes
  • Verify WebP images load correctly and fallback works in unsupported browsers
  • Test lazy loading by scrolling the page
  • Run Lighthouse performance & accessibility audits
  • Check OG and banner images for readability

🏷️ Labels

frontend, seo, accessibility, performance, swoc2026, medium


🙌 Contribution Notes

  • Focus only on image optimization and accessibility
  • Do not modify SEO metadata or structured data (handled in separate issues)
  • Document any major changes to image paths or naming conventions in the PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions