GLTFLoader loadAsync ProgressEvent target null since r134

Hey there,

i have a problem since i updated to r134.
I am loading a gltf file with the GLTFLoader.

loader.loadAsync(path, (event) => {
// doing stuff with the event
});

Until r133.1 the event.target contained an XMLHttpRequest.
Since r134 the event.target is null everytime.

The only thing i have changed is updating to r134.
I also tested older versions (r132) where i am also getting an XMLHttpRequest.

Is there anything i can do about this?
Thanks in advance.

FileLoader which is internally used by GLTFLoader does now use the fetch API for requesting resources. That means you can’t work with XMLHttpRequest anymore. Related discussion:

Okay, good to know.
Is there any way to determine which file the ProgressEvent is related to now?

I was using the event.target.responseURL before.

1 Like

I have this same question. My progress loader is broken as a result of updating 3js, but I need to to use another feature. The ProgressEvent does not seem to contain any data to identify the file.