News for hackers. Stuff that matters.
Re:In spite of an increase in Internet speed, webpage speeds... by aryonoco on Tuesday August 04, 2020 @06:40PM (#24055283)
Vanilla JS is pretty cool. Eleventy is even cooler, it gets you most of the things a framework gets you, but gets compiled to fast, vanilla JS and that's what served to the browser.

Svelte/Sapper also has a lot of potential as it only ships the parts if the framework that are absolutely needed instead of the whole thing.

But in reality, you can make plenty of very fast React sites and plenty of slow vanilla JS sites.

Re:In spite of an increase in Internet speed, webpage speeds... by j-krieger on Tuesday August 04, 2020 @06:51PM (#24055356)
Any modern JS Framework gets compiled to vanilla JS. That‘s exactly the problem: Because Browsers don‘t implement ES6+ Syntax natively, it has to get compiled to complicated, long winded ES5 or filled by heavy polyfills. If browsers were all spec compliant, code bundles would be way smaller.
Re:In spite of an increase in Internet speed, webpage speeds... by azangru on Tuesday August 04, 2020 @07:21PM (#24055563)
> Because Browsers don‘t implement ES6+ Syntax natively

Erm what? What browsers are you talking about now?

Re:In spite of an increase in Internet speed, webpage speeds... by IggleSniggle on Tuesday August 04, 2020 @08:39PM (#24056042)
This almost certainly means Internet Explorer, if they’re only referring to ES6. But honestly I love all the feature since then. It’s actually difficult for me to imagine not using TypeScript these days, let alone not having access to asynchronous/await or async iterables, plus all the tiny little syntax improvements it’s easy to take for granted like Array.includes()
Re:In spite of an increase in Internet speed, webpage speeds... by duckmysick on Thursday August 06, 2020 @05:58AM (#24069554)
Old Android browsers, UC Browser.