Re: [dev] suckless too to minify CSS, JS and html

From: Patrick Bucher <patrick.bucher_AT_mailbox.org>
Date: Fri, 18 May 2018 22:54:38 +0200

On Fri, May 18, 2018 at 07:38:36PM +0200, Hiltjo Posthuma wrote:
> On Fri, May 18, 2018 at 05:22:43PM +0100, Martin Tournoij wrote:
>
> Don't create pages with 3MB of Javascript, that's insane.
>
True
>
> I think concatenation/bundling in one file is fine, but not minification,
> because it makes the source unreadable. Carefully evaluate what you actually
> use in the site. Don't use bloated Javascript (such as jQuery) and CSS frameworks
> (such as Bootstrap).
>
jQuery looks almost reasonable nowadays, compared to the shitpile that
comes out of a Angular «Web App».
>
> Make sure to "gracefully fallback" so Javascript is not required.
>
> One of the latest trends in Javascript bundle compilation. For example have a
> look at the new Reddit layout. There all the CSS classnames are randomized.
>
Must reduce the HTTP payload big time, especially when gzipped M-(
>
> Stop this madness.
>
Yes, please!

Patrick
Received on Fri May 18 2018 - 22:54:38 CEST

This archive was generated by hypermail 2.3.0 : Fri May 18 2018 - 23:00:21 CEST