How to load object separately from its texture?

Hi everyone!
I have few objects in my three.js project, but all of them use the same texture.

Unfortunately the loader loads the same texture few times (one time for each object).
I can see it in Chrome dev-tools:
img2

It only waste the memory and increases the loading time.
Can I load this texture only once?

This problem is very simmilar to the other:
I have another object with a texture, but I change this texture immediately after loading.
I don’t need the original texture. Can I prevent loading the original texture?

Does THREE.Cache.enabled = true fix this?

https://threejs.org/docs/#api/en/loaders/Cache

1 Like