When I inquired about certain things (like callbacks for buttons, or custom panels/windows) a core developer gave me the rather annoyed reply (paraphrasing): "Blender isn't an application framework and Python is meant to enhance functionality, not create it." Which is unfortunate, because Blender has become a de facto application framework, even if the developers don't want to admit it.
OTOH I'm afraid I don't know specifics either so I guess I'm the wrong person to ask as well.
Also there is no such thing as a button callback in Blender UI. The only thing you can do is insert a button which calls an "operator". You can define your own operators of course, but this only works as long as you don't want to generate the buttons dynamically. Then you'd have to generate operators dynamically, and things only go downhill from there...
Blender is one of those applications which is meant for people spending countless hours in it. Installation convenience just doesn't count.
We may be in a position right now where WebGL is new-ish but this is changing and 5-10 years from now the difference between a native and webapp likely won't be much. It seems silly to argue that users should go through an extra step / give large amounts of trust to an application if they don't need to.
If it's a webapp, then you have to trust that the application won't disappear overnight, or be changed it ways you don't like. If you have downloaded the software, you can continue to use it.
There are trade-offs in both directions.
WebGL is great, and can be used to great effect. Blender, at least since 2.8, is definitely exceeding whatever WebGL could provide.
Many web apps I find terrible and I'm sure it uses a bunch more resources than it would need to, but it runs on my FOSS operating system of choice and really works quite well.
yea I know not the same as blender in emscripten but the same as in a pro modeling package in the browser
I think the biggest hurdle tho is data. 3d editors generally need access to 100s of megs of data so you'll likely hit a wall pretty quick past a certain size. no idea how clara.io handles that
Blender can actually be quite efficient in terms of memory. I have been using it as a command line application at times, because it starts up really fast.