Re:CNET is deleting old articles to try to improve its Googl...
by robertlagrant on Thursday August 10, 2023 @07:16AM
(#37074636)
It does stuff like tree shaking as well; it's quite good. If your page is bloated, it makes it better. If your page is not bloated, it makes it better.
Re:CNET is deleting old articles to try to improve its Googl...
by throwaway290 on Thursday August 10, 2023 @11:02AM
(#37077054)
Tree-shaking is orthogonal to minification tho.
Re:CNET is deleting old articles to try to improve its Googl...
by robertlagrant on Thursday August 10, 2023 @11:19AM
(#37077276)
That's true.
Re:CNET is deleting old articles to try to improve its Googl...
by dgb23 on Thursday August 10, 2023 @01:29PM
(#37079055)
It doesn't compensate bloat, but it reduces bytes sent over the wire, bytes cached in between and bytes parsed in your browser for _very_ little cost.
You can always open dev tools in your browser and have an interactive, nicely formatted HTML tree there with a ton of inspection and manipulation features.
Re:CNET is deleting old articles to try to improve its Googl...
by throwaway290 on Thursday August 10, 2023 @02:45PM
(#37080114)
In my experience usually the bigger difference is made by not making it bloated in the first place... As well as progressive enhancement, nonblocking load, serving from a nearby geolocation etc. I see projects minify all the things by default while it should be literally the last measure with least impact on TTI
Plus I suspect minifying HTML or JS is often cargo cult (for small sites who are frying the wrong fish) or compensating for page bloat