Hacker News new | ask | show | jobs
by kmiroslav 3647 days ago
The size of the Javascript generated by Scala.js alone makes it a non starter for serious projects.
3 comments

Yeah, these tens of kilobytes of JS next to those ten badly compressed 600kB jpgs are really killing it.
this isn't a fair comparison. It fails to account for what happens after the files are downloaded, which is where overall js code size has an outsized effect.
I think people have been including jQuery just fine for the last decade.
Yes, but jquery is much smaller than an empty scala.js app. jquery is about 25kb gzipped and minified (the other comment used the raw size) whereas scala js is 45kb for an empty application.
TBH, You don't use scala.js to write hello world apps. I'm much more curious how Scala.js handles a 100Kloc app, but I haven't seen any data on that.
Look at here: https://www.scala-js.org/

"The generated JavaScript is both fast and small, starting from 45kB gzipped for a full application." - 45kB... jQuery is ~80kB.

jQuery gzipped and minified is 25kb. You're comparing raw to compressed.
Cedric, how does a 45KB js file make Scala a non-starter?