Closed Jassob closed 8 years ago
There are definitely room for improvements on both the amount data we push to clients and the number of requests needed to open for each client.
I think it would be nice if we could merge some javascript files so that they would be transferred in one blob instead of opening multiple connections.
This issue was moved to Jassob/DNollK.se#21
Fixed header image with b9122744a9bbf8407f4d7b55741ad1f8373d2ef6
Now we have a new problem though! The dn0k.png is 11 MB large, so I resized it (the old one is named dn0k.old.png) and now it's only 1.7 MB. So we should warn the user when uploading to not upload so f***ing large images and use compression on PNGs.
Also I worked on the server to fix caching. It's better now.
Holy shit! I ls -Al
:ed the media/2016/
folder. The largest file is 50 MB large!!!!!!!!1
Really limit the users from being dumb and uploading f***ing huge images!
Fixed logo image with 0da2efe0e22507995b0d1d6fd4daea80b1837355
I have compressed a lot of the images on dnollk now. Data savings are huge. Now I can load dNollK without caching 200 times with a 2GB dataplan instead of just 20.
When the commits b9122744a9bbf8407f4d7b55741ad1f8373d2ef6, 0da2efe0e22507995b0d1d6fd4daea80b1837355 are applied then this issue can be closed.
Good work! You are right in that we should inform the administrators of the site not to upload huge images as that leads to a poor experience for the viewer..
I'll check in on these changes tomorrow just so I understand what you've done (so that I might learn something in the process).
From @emilhem on August 12, 2016 8:31
The header image on desktop should be a JPG and compressed a lot! 4 MB is a lot!
The other images should be compressed as well to improve delivery.
Also caching should be used on all the images hosted on dnollk.se
A tip is to look at Google Pagespeed: https://developers.google.com/speed/pagespeed/insights/?hl=en&url=dnollk.se
Copied from original issue: dtekcth/DNollK.se#23