Adding and calling to .js files in build

Hi All!

I’m trying to get audio compression working in WebGL and so far it’s been pretty draining (since I’ve never used javascript nor html).

So far I’ve tried to create .jslib files for emscripten to compile and use and although it works within it’s scope I’m unable to convert some of the .js files into the correct format due to them containing class structures which (to my knowledge) cannot be passed to emscripten.

So, to get to the question I’m asking - is it possible to use javascript files that are added post-build and call them from within the WebGL app?

Managed to find a solution: