How is scalajs now? The last time I checked it out, it baked in about 100KB of overhead into the simple hello world.
[1] - https://github.com/scala-js/scala-js/issues/4#issuecomment-2...
But that goes down to like 50k after compression. Some logos are bigger than that.
Not trivial, but for a lot of use cases, that's good enough. Especially if you cache appropriately.