Re:Show HN: A static site generator that prettifies the outp...
by dlachausse on Wednesday March 27, 2024 @08:16AM
(#39838042)
You see this concern about file size of websites all the time, but the extra white space is not what makes websites large, it’s all the images, fonts, and JavaScript libraries that get bundled with them. For most sites the HTML is negligible and compresses well if you enable GZip.
[ Parent
| on HN ]
Re:Show HN: A static site generator that prettifies the outp...
by chrisweekly on Wednesday March 27, 2024 @08:29AM
(#39838153)
True. Also, for a typical web page, over 90% of user-perceived latency occurs AFTER the HTML has been fetched, unzipped, and parsed. That doesn't mean minification and compression are worthless, but it may help put things in perspective.
Re:Show HN: A static site generator that prettifies the outp...
by cantSpellSober on Wednesday March 27, 2024 @08:48AM
(#39838347)
Yep, I know images are big, fonts are evil and what gzip is.
Instead of "why not?" the author could sell the "why" there.
Re:Show HN: A static site generator that prettifies the outp...
by djbusby on Wednesday March 27, 2024 @10:40AM
(#39839820)
Soon as I saw the title I thought their "why" was: so it looks good when I view source.
Re:Show HN: A static site generator that prettifies the outp...
by cantSpellSober on Wednesday March 27, 2024 @11:27AM
(#39840550)
"why" in the repo, not the HN title
Re:Show HN: A static site generator that prettifies the outp...
by dinkleberg on Wednesday March 27, 2024 @09:00AM
(#39838476)
Not everything in life needs to be optimized.
Re:Show HN: A static site generator that prettifies the outp...
by pfarrell on Wednesday March 27, 2024 @10:14AM
(#39839412)
And not every optimization is worth the effort.
Re:Show HN: A static site generator that prettifies the outp...
by cantSpellSober on Wednesday March 27, 2024 @10:26AM
(#39839595)
In this case effort was required to remove the optimization.
Re:Show HN: A static site generator that prettifies the outp...
by cantSpellSober on Wednesday March 27, 2024 @10:27AM
(#39839614)
Nope! We weren't talking about "everything in life" but instead HTML in statically-generated websites.