Comment

Comment by capitainenemo

BTW, if the page author happens to be reading this. (loved the article BTW)

Your header image Screenshot_15.png is 2½ megs in size which is pretty brutal on slower connections or for those with data costs. Plus it causes it to load a lot less snappily even on a decent connection. It is served in a fixed width 827px container yet is 1902px in size. Given the content (a simulated planet with fuzzy content) extra detail for HD isn't super useful and png will not compress well. Allowing for a little extra width for later retheming and then recompressing as jpeg...

    $ convert Screenshot_15.png -scale 1240x Screenshot_15_1240.png
    $ ~/hg/mozjpeg/cjpeg Screenshot_15_1240.png > Screenshot_15_1240.jpeg
    $ ls -l Screenshot_15_1240.jpeg
    -rw-r--r-- 1 nemo nemo 65870 Mar  7 13:55 Screenshot_15_1240.jpeg
2.6% the size of the original.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton