Open MasseGuillaume opened 7 years ago
[ ] fullOptJS
on the Scala.js output :)
When the user compiles a Scala.js snippet or when I compile the website?
The website itself (that's why it was 2mb of JS on my initial download, instead of a few hundred KB like scalafiddle is)
compilation output of a Scala.js snippet could go either way, since the time you save on download you pay for in increased compilation time that the user has to wait for. For the website itself though, compilation is done beforehand, so there's no reason not to fullOptJS
the website's own JS bundle
I'm pretty sure the website is fullopted
Huh, so the 2mb blob is after fullOpt
??? That sound unusual unless your app is pretty large
I guess if it's already fullOpt
-ed then the only thing is to gzip it then
It's a webpack bundle: It includes React & CodeMirror. I guess I can minify those artifacts too.
oh yeah there are definitely minified versions of those two artifacts you can pull in
We are now down to 300KB. https://github.com/scalacenter/scastie/pull/341
For the CDN, we will probably use CloudFlare, but I need to discuss this with our sysadmin first.
This would be really useful for the scaladoc (http://www.scala-lang.org/api/current/index.js is 1.1MB gzipped!)
yasssss
On Sat, 23 Sep 2017 at 10:35 AM, Guillaume Massé notifications@github.com wrote:
For the CDN, we will probably use CloudFlare, but I need to discuss this with our sysadmin first.
This would be really useful for the scaladoc ( http://www.scala-lang.org/api/current/index.js is 1.1MB gzipped!)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/scalacenter/scastie/issues/194#issuecomment-331656184, or mute the thread https://github.com/notifications/unsubscribe-auth/AA5A_J4SFnZJY6PoFb_zrCe03UGqKOxLks5slUFigaJpZM4Ndwbh .
@lihaoyi reported a ~27s loading delay in Singapore.