HTTPSceneLoader onReady being called once for each object

Using the HTTPSceneLoader onReady function as in this codesandbox results in sceneImporter’s onReady function (line 227) being called multiple times. It looks like it’s being called 1 per object in the scene, but the whole scene is accessible in each call.

I would think onReady would either be called after each object has finished loading, or once after the whole scene has loaded. Right now it seems as if it’s being called once for each object with the whole scene. Am I misusing or misunderstanding this function at all?

Thanks in advance!

It is indeed called every time an item in the scene is ready.
You will have to count the ready calls and the scene length to know when you reach the end of the loading.

Ok sounds good, thanks @Sebastien.