Skip to content

Enable image optimization and basic caching to improve page load speed. #319

@zleypner

Description

@zleypner

📑 Issue Summary

Enable image optimization and basic caching to improve page load speed.

🏷️ Type of Issue

  • Bug
  • Feature Request
  • Performance
  • Documentation
  • Security
  • Other (please specify)

🔎 Current Behavior

  • Images are not optimized for web (large file sizes).
  • No caching headers set for static assets.

✅ Expected Behavior

  • Compressed images for faster loading.
  • Browser caching enabled for static assets (images, fonts, CSS, JS).

📝 Files to Edit

  • vite.config.js – Add an image optimization plugin.
  • public/ – Replace heavy images with optimized versions.
  • index.html – Add basic caching meta tags if needed.

🧭 Steps / Acceptance Criteria

  • Install and configure an image optimization plugin for Vite.
  • Convert large .png/.jpg assets to .webp or .avif where possible.
  • Ensure long-lived cache headers for static assets are applied.
  • Verify Lighthouse performance score improves for “Performance” and “Best Practices”.

📒 Notes

  • 🖼️ Prefer .webp/.avif for hero and gallery images.
  • ⚖️ Keep acceptable visual quality; prioritize meaningful size reductions.
  • 🧹 Remove any unused large images from the repo.

Make sure to access the Contributor Guideline before proceeding.

Before you make a draft PR, please check the GIT Guideline to ensure your changes align with the project's standards.

Conventions

  • Use kebab-case for file and folder names.
  • Use @/ aliases for imports (avoid relative paths).
  • Review the organization of the pages to ensure everything is correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Only Dustfor issues along the month, after the od week ends

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions