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