News for hackers. Stuff that matters.
Re:10 Years of Scala.js by no_wizard on Sunday February 05, 2023 @06:57PM (#34671274)
Does it do any smart lazy loading cans/or code splitting based on entry points into different functionality of the application?

This is the kind of optimization you can get from compilers like this, esp. leveraging the closure compiler

Re:10 Years of Scala.js by AlexITC on Sunday February 05, 2023 @07:30PM (#34671586)
While module splitting was introduced by sjs 1.3.0 [1], the apps I have linked do not use it just yet (well, technically, the games page uses it but it is a single page loading everything, so, no real benefit from it).

[1]: http://www.scala-js.org/news/2020/10/16/announcing-scalajs-1...

Re:10 Years of Scala.js by sjrd on Monday February 06, 2023 @01:20AM (#34674011)
Yes, it does. This is what Dynamic Imports are for. See https://www.scala-js.org/doc/project/module.html#dynamic-imp...