News for hackers. Stuff that matters.
Re:Can You Afford It? Real-World Web Performance Budgets by justin_d on Friday October 27, 2017 @09:00PM (#15573437)
It's remarkable how much js gets loaded onto a page (mainly due to libraries) vs. how much of its functions are needed for what the web developer is trying to do. There just is not a whole lot of use cases for the big libraries unless you're doing something really intensive like a drawing app.
Re:Can You Afford It? Real-World Web Performance Budgets by codingdave on Saturday October 28, 2017 @05:45AM (#15574565)
Even for the example of a drawing app, there is no need for huge libraries. The basic code of putting up a canvas and enabling some drawing on it is pretty small. Most of the apps I've seen with lots of Javascript are still doing it for extras in the UI, not the drawing itself. But many developers would rather grab an existing library than think out the simplest, smallest code that does the job.
Re:Can You Afford It? Real-World Web Performance Budgets by crooked-v on Friday October 27, 2017 @10:36PM (#15573702)
Tree shaking should help... eventually.
Re:Can You Afford It? Real-World Web Performance Budgets by megaman22 on Friday October 27, 2017 @10:56PM (#15573757)
Next year, in Jerusalem
Re:Can You Afford It? Real-World Web Performance Budgets by briantakita on Friday October 27, 2017 @11:03PM (#15573786)
You can have tree-shaking right now, with rollup.js. You can also have purely transpiled isomorphic component library (no runtime download) running at near vanillajs speeds with svelte.js.