Suggestion: PNG instead of GIF

Announcements, comments, ideas, feedback, and "How do I... ?" questions
Post Reply
Apo
Posts: 2
Joined: Wed Jan 02, 2008 11:37 pm

Suggestion: PNG instead of GIF

Post by Apo »

Seeing how the page seems to be taking a lot of bandwidth, I'd like to suggest the use of png instead of png. As an example, I have uploaded pe_logo.gif, converted to a 32-color png:
png: Image
gif: Image
The size of pe_logo.gif is 5750B, while pe_logo.png only needs 2678B.
Another idea (suggested by a friend) would be to set the expiry time of the static pages to perhaps one week in the future, so browsers don't download them every time but instead get them from their cache.

Greetings
WoLpH
Posts: 5
Joined: Thu Nov 01, 2007 3:38 pm

Re: Suggestion: PNG instead of GIF

Post by WoLpH »

I don't think changing the gif to a png will help much, but png is the better standard anyway so I think it would be a good idea anyway :)

As for saving bandwidth, using last-modified, etags and other headers effectively will lower the bandwidth and other resources enormously.
Another nice option is showing everything on the problems page by default and making the solved/unsolved/sort settings completely in javascript so it won't require a page reload :)
By combining this with a cookie update once you solve an issue will make that page completely static so it only has to be loaded once per new problem per user. This would most likely be the most rewarding change possible, it would remove the possibility to hide the "last post" and "posts" columns from users that haven't solved it yet (or the other way around, not visible for anyone).
User avatar
euler
Administrator
Posts: 5095
Joined: Sun Mar 05, 2006 4:49 pm
Location: Cheshire, England
Contact:

Re: Suggestion: PNG instead of GIF

Post by euler »

Hi Apo, and apologies for not replying sooner, but you're probably quite aware of what has been keeping me busy. :wink:

Many thanks for the idea, and converting the file. Every byte helps, so I'll upload it later when I get home from work. Thanks!
Image
impudens simia et macrologus profundus fabulae
Post Reply