hackclub / jams

We're jamming!
https://jams.hackclub.com
33 stars 70 forks source link

🚀 Optimized the page speed & Added the better svg 😊 of flag on the header #183

Closed nermalcat69 closed 11 months ago

nermalcat69 commented 11 months ago

Hey this is nermal, i was thinking of making an effective change to the repository, i checked jams.hackclub.com's page speed , it was a bit bad sooo thought of doing something which can make it a bit better (the results will be at the end, scroll down for it)

Changes Made

LOW QUALITY SVG: Screenshot 2023-10-01 at 7 27 52 AM HIGH QUALITY SVG: Screenshot 2023-10-01 at 7 27 27 AM

https://github.com/hackclub/jams/assets/73933669/1a6ba5b1-973b-4858-ae18-de725bb12c79

Please encourage people to use webp images for their thumbnails instead of gifs or pngs

Screenshot 2023-10-01 at 8 36 31 AM
  1. https://jams.hackclub.com/jam/glsl-shaders
  2. https://jams.hackclub.com/jam/voxel-animation
  3. https://jams.hackclub.com/jam/custom-snowglobe
  4. https://jams.hackclub.com/jam/story-game
  5. https://jams.hackclub.com/jam/kaboom-game

Flexible formats: WebP is a chameleon — it supports both lossless (like a PNG) and lossy (like a JPEG, slight quality loss for smaller file size) compression. Transparency: Similar to PNG files, WebP supports transparent backgrounds.


There's some improvement by using webps instead of gifs

Screenshot 2023-10-01 at 11 19 59 AM
  1. Largest Contentful Paint is 5.1s instead of 6.7 secs
  2. Speed index is 1.9s instead of 3.4secs

Before

Screenshot 2023-10-01 at 11 20 26 AM

After

Screenshot 2023-10-01 at 11 20 21 AM
vercel[bot] commented 11 months ago

@nermalcat69 is attempting to deploy a commit to the Hack Club Team on Vercel.

A member of the Team first needs to authorize it.

nermalcat69 commented 11 months ago

@SerenityUX check this pull request, let me know what are ur thoughts ?

vercel[bot] commented 11 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
jams ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 2, 2023 11:26am
nermalcat69 commented 11 months ago

After

Screenshot 2023-10-01 at 6 40 24 PM Screenshot 2023-10-01 at 6 41 22 PM
nermalcat69 commented 11 months ago

Before

Screenshot 2023-10-01 at 6 42 53 PM Screenshot 2023-10-01 at 6 43 01 PM