ASEAN-Build-The-Earth / AseanBTE-Website

[ARCHIVED] ASEAN BTE Website
https://asean.buildtheearth.asia
Other
13 stars 16 forks source link

Image load really slow #16

Open 0xMukesh opened 2 years ago

0xMukesh commented 2 years ago

The images load really slow The internet speed of my wifi is pretty good so there isn't any issue with the internet speed I tested with laptop as well, same issue occurred I think the issue is with the file size of the images IMG_20211021_114200

StoneMcYT commented 2 years ago

So true just realized it myself. could we just resize the image from HD to 720'?

0xMukesh commented 2 years ago

So true just realized it myself. could we just resize the image from HD to 720'?

Sure, if the quality of photo doesn't degrade a lot xD

StoneMcYT commented 2 years ago

So true just realized it myself. could we just resize the image from HD to 720'?

Or is possible so cache the image in the RAM and only load the image when in view? or somethine like that

tintinkung commented 2 years ago

html can modify image size directly isnt it

0xMukesh commented 2 years ago

I realised just now that, I cleared my browser's cache so I guess that was the reason But it is pretty inconvenient for the new visitors

tintinkung commented 2 years ago

yea i dont think i get that slow loading problem too, should focus on makin website actually looks good first

Samkit-shah commented 2 years ago

I think we have a way out there to load the images faster. Can I work on it?

tintinkung commented 2 years ago

yeas if u have some way to help

Samkit-shah commented 2 years ago

yeas if u have some way to help

PR done #37

tintinkung commented 2 years ago
RenatoLopes771 commented 2 years ago

Other resources we could try alongside lazy loading:

Btw some of these might require user to run javascript. We should try using as less javascript as possible.