I have tried OpenSCAD, it seems very slow to compile to display on web. are you using the official wasm or some other ways?
you may find this useful: https://phaestus.app/blog/blog0031
Edit: Forgot I also got doom running in openscad: https://www.mikeayles.com/blog/openscad-doom/
and doom running in openscad in the browser at https://doom.mikeayles.com/
I export it as .3mf file and display it with threejs on the web. Compilation seemed fast enough - few seconds tops.
you may find this useful: https://phaestus.app/blog/blog0031
Edit: Forgot I also got doom running in openscad: https://www.mikeayles.com/blog/openscad-doom/
and doom running in openscad in the browser at https://doom.mikeayles.com/