WASM files in the JS API

483
3
Jump to solution
04-08-2021 10:25 AM
VictorBerchet
New Contributor III

It seems that there are 2 wasm files in 4.19

One of them seems to be handling i3s (from its name) and weights 700kB.

Is is possible to split WASM files in smaller modules and load them are required as opposed to have to load 700k ?

0 Kudos
1 Solution

Accepted Solutions
ArnoFiva
Esri Contributor

Please let us know if something doesn't work as expected. However the WASM module contains various I3S related functionality so it will be loaded once you use scene layers. Splitting that up does make sense, I'll bring it up with our team :thumbs_up:

View solution in original post

0 Kudos
3 Replies
ArnoFiva
Esri Contributor

The I3S related WASM file should only be loaded on demand, meaning when loading scene layers in a scene. Can you confirm or have you witnessed any different behavior? 

0 Kudos
VictorBerchet
New Contributor III

I haven't checked yet. I was only wondering if the file could be split in smaller modules, i.e. are 700kB of wasm required for all i3s or would a subset of that be enough for most use cases ?

0 Kudos
ArnoFiva
Esri Contributor

Please let us know if something doesn't work as expected. However the WASM module contains various I3S related functionality so it will be loaded once you use scene layers. Splitting that up does make sense, I'll bring it up with our team :thumbs_up:

0 Kudos