I load the animations for the first avatar showing in the scene and then cache it. If a second avatar join the room while the animations are being loaded (this is just maybe 2 seconds), this starts to load again the animations instead of waiting the first execution to be done.
Put that code in a Promise.
I load the animations for the first avatar showing in the scene and then cache it. If a second avatar join the room while the animations are being loaded (this is just maybe 2 seconds), this starts to load again the animations instead of waiting the first execution to be done. Put that code in a Promise.