TextureLoader from Wordpress ACF image

Hi Guys,

I have a website in Wordpress where I have a script that preloads textures from each ACF image field from repeater field. I use shadermaterial and create meshes from textures and shadres. Problem is that sometimes some images not loading properly(colored stripes instead image, as shown on uploaded images) . When I refresh page it sometimes loads ok and sometimes not. There are 10 meshes on a page and they load incorrect randomly.
I assume that problem is that images are loaded from Wordpress ACF. Does anyone know how to fix this?


Zrzut ekranu 2021-04-30 o 17.39.04

Is there anyone experienced in working with graphics loaded from WP and Three.js? I spent so many days on that and have no idea how to fix it:(