The solution to these problems is:
1. Load the WASM file, which for me only worked if I put it in the public folder.
2. Convert all your text to paths. You can write an SVG preprocessor to do it for you.
3. Load and convert all images to data urls.