SaranshBangar / Daneizo

Why buy when you can rent it!
https://daneizo.vercel.app/
MIT License
24 stars 43 forks source link

Optimize_Images_for_Better_Performance #132

Open smog-root opened 1 month ago

smog-root commented 1 month ago

We need to optimize images on our website to improve loading speed and overall performance. This includes compressing existing images and converting them to more efficient formats like WebP.

Compress Images:

Use tools like TinyPNG or ImageOptim to reduce the file size of current images without sacrificing quality.

Convert to WebP Format:

Change image formats from JPEG/PNG to WebP where appropriate to enhance performance.

Enable Lazy Loading:

Implement lazy loading for images to defer loading off-screen images until they are needed.

<img src="image.jpg" alt="Description" loading="lazy">

Note: Assign me and add gssoc-ext with level3 and hacktober-accepted labels!

@SaranshBangar

SaranshBangar commented 1 month ago

@smog-root Instead of using 3rd party tools, try implementing Next.js inbuilt tools