moraexams / website

https://moraexams.org
0 stars 6 forks source link

Unoptimized asset files #20

Open sahithyandev opened 1 month ago

sahithyandev commented 1 month ago

Tried opening moraexams.org yesterday and it took too long to load. It's because the asset files are not optimized. They add up to a total of 14MB. Especially the favicon shouldn't be more than 8kb.

Screenshot from 2024-07-18 00-48-10

sahithyandev commented 1 month ago

Brought that down to 9.7MB. Use https://squoosh.app to optimize other images. And remove the unused ones.

Screenshot from 2024-07-18 00-57-59

sanjaiyan-dev commented 1 month ago

Hi Anna,

I hope this PR will solve some of the issues by lazy loading the images. https://github.com/moraexams/website/pull/28

sahithyandev commented 1 month ago

@sanjaiyan-dev Although lazy loading is an improvement, it isn't the same as optimization of the images. The website still downloads a huge amount of images, just a bit later.

sanjaiyan-dev commented 1 month ago

@sanjaiyan-dev Although lazy loading is an improvement, it isn't the same as optimization of the images. The website still downloads a huge amount of images, just a bit later.

Hmm, I think better if we compress to webp format.