Re:Show HN: Million 3 – Optimizing compiler for React
by gothink on Friday February 02, 2024 @06:31PM
(#39235956)
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.
[ Parent
| on HN ]
Re:Show HN: Million 3 – Optimizing compiler for React
by ricardobeat on Friday February 02, 2024 @08:07PM
(#39236644)
Ouch. It’s also downloaded twice (in Safari at least), putting the total page weight at almost 40MB.
Re:Show HN: Million 3 – Optimizing compiler for React
by Hrun0 on Friday February 02, 2024 @06:35PM
(#39235995)
Nothing a couple of rocket emojis won't fix :D
Re:Show HN: Million 3 – Optimizing compiler for React
by lifthrasiir on Saturday February 03, 2024 @12:45AM
(#39237858)
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.
Re:Show HN: Million 3 – Optimizing compiler for React
by blackoil on Saturday February 03, 2024 @01:43AM
(#39238091)
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.
Re:Show HN: Million 3 – Optimizing compiler for React
by paulddraper on Saturday February 03, 2024 @01:47AM
(#39238107)
Yeah for all the complaints about an extra 500Kb of JS, the real offenders are often images.
Re:Show HN: Million 3 – Optimizing compiler for React
by quickthrower2 on Monday February 05, 2024 @04:59AM
(#39259305)
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.
Re:Show HN: Million 3 – Optimizing compiler for React
by quickthrower2 on Monday February 05, 2024 @04:57AM
(#39259295)
Looks like a job for pure css, or if you are feeling brave, svg!