top | item 39235956

(no title)

gothink | 2 years ago

I'm not a React dev, so I can't comment on the project itself. Something I noticed on the blog post, though: The image at the top of the page is served uncompressed at a whopping 18.5MB (9751px * 6132px)! Seems a bit extreme for what amounts to a simple logo and some text.

discuss

order

Hrun0|2 years ago

Nothing a couple of rocket emojis won't fix :D

ricardobeat|2 years ago

Ouch. It’s also downloaded twice (in Safari at least), putting the total page weight at almost 40MB.

lifthrasiir|2 years ago

And the file has a very, very faint gradient background with heavy dithering, so lossless compression won't actually help that much (ECT was only able to shave 13% of the file after minutes). In fact it is one of the worst imaginable cases for raster image formats.

blackoil|2 years ago

18 MB may be odd, but most pages now have multiple images making each page 10s of MB. That makes all discussions about some framework few hundred kb smaller funny.

paulddraper|2 years ago

Yeah for all the complaints about an extra 500Kb of JS, the real offenders are often images.

quickthrower2|2 years ago

But don’t forget you need to download and parse the JS and load that into memory. Plus depending on what it does it may be battery intensive.

quickthrower2|2 years ago

Looks like a job for pure css, or if you are feeling brave, svg!

aidenyb|2 years ago

Holy crap you're right, that was a VERY large image, fixed: 18.5MB -> 21KB